forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: Dammerich on November 07, 2005, 11:54:43 pm

Title: Fatal error: main(): Failed opening required 'include/config.inc.php'
Post by: Dammerich on November 07, 2005, 11:54:43 pm
Please help!

I am trying to install Coppermine 1.3.5 on my notebook (test setup). I am getting the message
Warning: main(include/config.inc.php): failed to open stream: No such file or directory in D:\Apache\htdocs\projects\dammerich.nl\coppermine\include\init.inc.php on line 229
Fatal error: main(): Failed opening required 'include/config.inc.php' (include_path='.:/') in D:\Apache\htdocs\projects\dammerich.nl\coppermine\include\init.inc.php on line 229

I have this in my php.ini file:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

include_path=".;c:\php\includes"

php is installed in c:\php and the php.ini files are in c:\windows and c:\php
I am using Windows XP Home edition with Apache 2.0 and i have administrator rights on my notebook

Other php/mysql projects are working fine like mambo 4.5.2

What can i do?

Title: Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
Post by: Joachim Müller on November 08, 2005, 08:36:11 am
well, did you set permissions on the include folder according to the docs? The user the webserver runs under needs write access during install. My guess is that the file in question just isn't there because the installer hasn't been able to create it. Check if include/config.inc.php is there and report back.
Title: Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
Post by: Dammerich on November 08, 2005, 07:24:25 pm
Well, I do have the include/config.inc.php file. It must be something else.  :-[

<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your database server
$CONFIG['dbuser'] =                         '**********';        // Your mysql username
$CONFIG['dbpass'] =                         '*******l';                // Your mysql password
$CONFIG['dbname'] =                         'dammerich';        // Your mysql database name


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

Title: Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
Post by: Nibbler on November 08, 2005, 07:30:06 pm
What's going on with your include path ? It's not the same in the error message as in the php.ini you claim to be using and you are on windows so the path seperator should be a semi-colon not a colon.
Title: Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
Post by: Dammerich on November 08, 2005, 10:37:35 pm
That's exactly Nibbler, where does this strange setting come from????
 I have only on two places the same php.ini with the setting include_path=".;c:\php\includes".
One in my c:\php and one in c:\windows
My error message is showing (include_path='.:/')

Title: Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
Post by: Joachim Müller on November 08, 2005, 11:05:26 pm
you may have two files named php.ini on your hard drive, but only one is being taken into account. Find out which one it is by looking at phpinfo();
Title: Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
Post by: Dammerich on November 09, 2005, 02:55:43 pm
I found the problem in c:\windows\php.ini in the [Sybase-CT] part of it. There was also an include_path = ".:/. I remarked it  and coppermine is working fine now

; Minimum client message severity to display.
sybct.min_client_severity = 10
;include_path = ".:/   <--  >:(

Thanks for all your helpful tips! Great  :D