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]   Go Down

Author Topic: Problems with config.inc.php  (Read 5546 times)

0 Members and 1 Guest are viewing this topic.

apierre

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Problems with config.inc.php
« on: August 14, 2004, 05:08:22 pm »

Hello,

Suddenly, without having made any change to my cpg1.2 photo album, which was working fine for more than 6 months, today I start receiving the following error, that you may see at: http://www.cmsmiguel.inazores.com/fotos.htm

++++++++++ START ERROR MESSAGE ++++++++++

Warning: main(include/config.inc.php): failed to open stream: No such file or directory in /home/cmsm/public_html/fotos/include/init.inc.php on line 135

Fatal error: main(): Failed opening required 'include/config.inc.php' (include_path=''.:/usr/lib/php:/usr/local/lib/php'') in /home/cmsm/public_html/fotos/include/init.inc.php on line 135

++++++++++ END ERROR MESSAGE ++++++++++

I've been working around it and can't find the reason for that.

Can someone please help me ?

Many thanks in advance.
--
Pierre Lima
Web: http://pierre.inazores.com
« Last Edit: August 14, 2004, 05:43:40 pm by apierre »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems with config.inc.php
« Reply #1 on: August 14, 2004, 06:46:04 pm »

Your database config file (that holds all data coppermine needs to connect to your database) appears to be missing or corrupt. Check your webserver wether the file include/config.inc.php exists. You can easily rebuild the db-config - check the sample file that came with coppermine.

GauGau
Logged

apierre

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Problems with config.inc.php
« Reply #2 on: August 14, 2004, 06:58:24 pm »

Thanks a lot for the prompt reply !  :)

I just checked my webserver - http://cmsmiguel.inazores.com/phpinfo.php - and the config.inc.php path is correct and it seems that the file do exist (unfortunately I don't have full access to the server to confirm if this file really exixts)

Quote
You can easily rebuild the db-config - check the sample file that came with coppermine

Sorry, what's the name of that sample file ?

Thanks in advance again.
--
Pierre Lima
Web: http://pierre.inazores.com
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems with config.inc.php
« Reply #3 on: August 14, 2004, 07:27:44 pm »

You can find the sample file in the include folder, it is named config.inc.php.sample
It looks like this:
Quote
<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your databaseserver
$CONFIG['dbuser'] =                         'root';        // Your mysql username
$CONFIG['dbpass'] =                         'xxx';                // Your mysql password
$CONFIG['dbname'] =                         'coppermine';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg132_';
?>
You will have to modify the stuff highlighted in red. You will need ftp-upload to actually upload it to your server - what do you mean by "unfortunately I don't have full access to the server to confirm if this file really exixts".

GauGau

P.S. Leaving your phpinfo file accessible for everyone and even posting a link to it on a public board is a security risk. I recommend you remove the file from the server, or protect it by limiting access to it (using .htaccess if you're on an apache server)
Logged

apierre

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Problems with config.inc.php
« Reply #4 on: August 14, 2004, 10:15:21 pm »

I'm sorry,

I did find the config.inc.php file in the /include folder on my server. It looks like this:

Quote
<?php

// Coppermine configuration file



// MySQL configuration

$CONFIG['dbserver'] =                         "localhost";        // Your database server

$CONFIG['dbuser'] =                         "cmsm_pierrelima";        // Your mysql username

$CONFIG['dbpass'] =                         "******l";                // Your mysql password

$CONFIG['dbname'] =                         "cmsm_fotos";        // Your mysql database name


// MySQL TABLE NAMES PREFIX

$CONFIG['TABLE_PREFIX'] =                "cmsm_";

?>

For security reasons I changed the db password.

As far as I understand the file is ok so I still can't understand why my photo-album stop working since I didn't made any change at all.

Thanks again for your time and for the warning about the phpinfo file.
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: Problems with config.inc.php
« Reply #5 on: August 14, 2004, 10:48:47 pm »

Make sure your server admins haven't done any recent changes, I was working this past week on a site being hosted on a shared service and after the admins made some changes they forgot to reboot the sql server and the database was crashing for hours at a time during the day... after the reboot - all back to normal. Just a thought?
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 14 queries.