Problems with config.inc.php Problems with config.inc.php
 

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

Main Menu

Problems with config.inc.php

Started by apierre, August 14, 2004, 05:08:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

apierre

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

Joachim Müller

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

apierre

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)

QuoteYou 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

Joachim Müller

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)

apierre

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.

skybax

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?
(https://coppermine-gallery.com/forum/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.