Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: I need help to connect database  (Read 17099 times)

0 Members and 1 Guest are viewing this topic.

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
I need help to connect database
« on: December 20, 2007, 07:00:10 am »

Hello


Few days ago my site has been hackered .......it was  cpg1.3.5 as a books store , 

the old database and all files are safe

I put them all in a new file and made a new cpg1.4.13 in the main page.....but I don`t know to do connection

 between old database and the new cpg1.4.13


please I need your help


thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: I need help to connect database
« Reply #1 on: December 20, 2007, 08:29:51 am »

Do exactly as suggested in the docs. Set up cpg1.3.5, then upgrade as suggested in the docs. Most recent stable currently is cpg1.4.14.
Logged

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: I need help to connect database
« Reply #2 on: December 20, 2007, 09:31:36 am »

thanks alot for your help dear


could  you please give me a link to download cpg1.3.5?



thanks again
Logged

Nibbler

  • Guest
Re: I need help to connect database
« Reply #3 on: December 20, 2007, 05:26:57 pm »

Put your old site back up and then update. You don't need to download a copy of 1.3.5
Logged

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: I need help to connect database
« Reply #4 on: December 20, 2007, 08:13:38 pm »

Hi GauGau


they hackered my copy 1.3.5   , so many php files damaged and I need to upload them again

so I need to download a copy of 1.3.5



thanks Dear
Logged

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: I need help to connect database
« Reply #5 on: December 20, 2007, 08:17:54 pm »

Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: I need help to connect database
« Reply #6 on: December 20, 2007, 09:07:29 pm »

 
Put your old site back up and then update. You don't need to download a copy of 1.3.5
do what Nibbler suggests: update your gallery with the latest version (1.4.14)
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: I need help to connect database
« Reply #7 on: December 21, 2007, 07:48:43 am »

The update process requires you to replace all files except the stuff that resides in the albums folder. Subsequently, if you're afraid to re-upload your corrupt cpg1.3.x files, then just make sure that the database is in place as well as the albums folder and the files include/config.inc.php and include/install.lock
Then upload the files from the cpg1.4.x package - this equals the same steps outlined in docs (upgrading section).
However: if your gallery got hacked (because you neglected to update so long although we have warned users that this would happen long ago), the attacker might have left backdoors and malicious files all over the webspace, so you'll have to scan the albums folder carefully for malicious files as well.
Logged

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: I need help to connect database
« Reply #8 on: December 22, 2007, 07:05:23 am »

Dear GauGau

THANK YOU FOR YOUR HELP ALWAYS


only one file was hackered (  include/config.inc.php ) ,I re_ upload the old one and everything is oky now  ,should I scan albums file??

 and when I made the upgrade to copy1.4.13  becouse it is Autoinstaller in my lockalhost and

I keep all php files in ( include ) I did as they said in docs (upgrading section) but still not working



http://www.tootshamy.com/index.php

Coppermine critical error:
Unable to connect to database !

MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)




(  include/config.inc.php ) is right all informations are right as they are in database.... I dont know where the mistake is

I did a new install also but same error


maybe it is hard for me becouse I am arabic girl but really I try

please help

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: I need help to connect database
« Reply #9 on: December 22, 2007, 01:15:14 pm »

should I scan albums file??
Definitely yes.

and when I made the upgrade to copy1.4.13  becouse it is Autoinstaller in my lockalhost
Auto-installers are unsupported. The only supported method is the one discussed in our docs. Auto-installers are crap.

Coppermine critical error:
Unable to connect to database !

MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Ask your webhost for support.
Logged

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: I need help to connect database
« Reply #10 on: December 22, 2007, 11:37:27 pm »

Dear GauGau


I canceled what I did before ,and made all steps as in your docs, I have my site back with cpg 1.4.14 but it's empty

how should I get my album as it was befor?


http://tootshamy.com/shamy2/index.php


thanks
Logged

Nibbler

  • Guest
Re: I need help to connect database
« Reply #11 on: December 22, 2007, 11:39:03 pm »

You need to use your old copy of include/config.inc.php
Logged

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: I need help to connect database
« Reply #12 on: December 23, 2007, 12:27:43 am »

Deleted the new copy and used the old one I lost the page again and got this result

Coppermine critical error:
Unable to connect to database !

MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)





what should I do?
Logged

Nibbler

  • Guest
Re: I need help to connect database
« Reply #13 on: December 23, 2007, 12:33:36 am »

Your include/config.inc.php file is corrupted. Repair the top of the file so it looks like this:

Code: [Select]
<?php
// Coppermine configuration file
// MySQL configuration
$CONFIG['dbserver'] =                         'xxx';        // Your database server
$CONFIG['dbuser'] =                         'xxx';        // Your mysql username
$CONFIG['dbpass'] =                         'xxx';                // Your mysql password
$CONFIG['dbname'] =                         'xxx';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg135_';
?>

Logged

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: I need help to connect database
« Reply #14 on: December 23, 2007, 12:43:42 am »

I did as you said




Fatal error :

.


While executing query "SELECT extension, mime, content, player FROM cpg135_filetypes;" on 0

mySQL error: Unknown column 'player' in 'field list'




please advise
Logged

Nibbler

  • Guest
Re: I need help to connect database
« Reply #15 on: December 23, 2007, 12:46:34 am »

You need to complete the update process by running update.php
Logged

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: I need help to connect database
« Reply #16 on: December 23, 2007, 01:32:57 am »

GauGau

Nibbler


You are great team .....thanks ....thanks......thanks

I am  so happy to have my book store again.....thanks for your help

the last help Ineed is the language ....arabic apears so strange and all section names does not appeare in arabic



please advise
Logged

Nibbler

  • Guest
Re: I need help to connect database
« Reply #17 on: December 23, 2007, 01:39:08 am »

You probably need to use charsetmgr.php to convert your content to utf-8.
Logged

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: I need help to connect database
« Reply #18 on: December 23, 2007, 08:21:13 am »

please give the file.... or tell me from where i can get it

I think the language shouls be arabic windows
Logged

Rana

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: I need help to connect database
« Reply #19 on: December 23, 2007, 09:15:53 am »

I want to ask about old (albums)wich we put it in (edit)....should I put it in the pleace of the new (albums)?

becouse I could not download books



Please be patient as it's difficult for me and  I am doing all my best

Thanks for your help
Logged
Pages: [1] 2   Go Up
 

Page created in 0.026 seconds with 19 queries.