coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: rigel2 on July 21, 2008, 10:25:24 AM

Title: [Solved]: Problems with includes in Coppermine initial setup
Post by: rigel2 on July 21, 2008, 10:25:24 AM
Hi

After I run install.php to set up Coppermine, I get the error message:

Warning: require_once(include/debugger.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/httpd/htdocs/cpg1418/include/init.inc.php on line 26

Fatal error: require_once() [function.require]: Failed opening required 'include/debugger.inc.php' (include_path='/usr/local/php/lib/php') in /home/httpd/htdocs/cpg1418/include/init.inc.php on line 26

I then edit init.inc.php on line 26, so that instead of 'include/debugger.inc.php' it now reads:
'./include/debugger.inc.php', or I even give it the absolute path, this works to a point, but then then it says there are other files it can't find. I would have to edit every single reference to include/ !!!! I upgraded my PHP version to 5.2.6, My previous version of PHP was 5.2.3 which I ran on MEPIS Linux 6.5, and I am now running MEPIS Linux 7.0. On before the upgrade it ran perfectly.

Any help would be greatly appreciated

Cheers

Title: Re: Problems with includes in Coppermine initial setup
Post by: Nibbler on July 21, 2008, 10:26:24 AM
You need to fix your include_path setting. Change it to .:/usr/local/php/lib/php instead. The dot is required.
Title: Re: Problems with includes in Coppermine initial setup
Post by: rigel2 on July 21, 2008, 10:36:27 AM
THANKS!!!

I edited my php.ini file as you said, then restarted the Apache webserver, and it works.

Cheers