Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Unable to connect to database !  (Read 2473 times)

0 Members and 1 Guest are viewing this topic.

myke1124

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Unable to connect to database !
« on: September 15, 2009, 08:49:53 pm »

I deployed coppermine on a test site (http://test.johnmillerconstruction.com/gallery). It works fine...
However... When I moved to to the production side (http://johnmillerconstruction.com/gallery) I get:

Quote
Coppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user 'apache'@'localhost' (using password: NO)

I have checked include/config.inc.php.  It is the same on both test and production.  The user name in the config file is not apache and a password is specified.

For testing purposes I modified the error statement in include/init.inc.php to echo $CONFIG['dbserver'] $CONFIG['dbuser'] $CONFIG['dbpass'] $CONFIG['dbname'] in the error message to check if the software was picking up the variables from config.inc.php.  The variables were displayed correctly, so I reverted init.inc.php back to the original state.

What am I missing?
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Unable to connect to database !
« Reply #1 on: September 15, 2009, 09:06:23 pm »

If you are using the same versions on both sites, then you should first upgrade.
        <!--Coppermine Photo Gallery 1.4.19 (stable)-->
Is old and vulnerable to hacking......

If you are indeed using the same folder relative to your public html root, then double check what
you are setting on your webserver for redirect(s) etc.

You also might want to try another theme, just in case your modified theme is looking for something
on the subdomain and getting in the way of Coppermine.

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Unable to connect to database !
« Reply #2 on: September 15, 2009, 09:25:32 pm »

Myke1124,

Once you have upgraded..... Search the forums as there are many answers you this question. Do not do that until you have upgraded.

i-imagine,

Viewing Mykes site at http://johnmillerconstruction.com/gallery/index.php?theme=classic might answer your question ;)
Logged
It is a mistake to think you can solve any major problems just with potatoes.

myke1124

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Unable to connect to database !
« Reply #3 on: September 15, 2009, 09:32:04 pm »

Thanks,

I updated to 1.4.25. and it seams to have fixed the issue.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Unable to connect to database !
« Reply #4 on: September 15, 2009, 09:50:00 pm »

Myke1124,

Glad you got it solved. Keep an eye out for updates as it is important.

Also, could you mark your threads as solve by clicking the tick in the corner of your post? It makes it easier for others to find good answers
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.