Fatal error: main(): Failed opening required 'include/config.inc.php' Fatal error: main(): Failed opening required 'include/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

Fatal error: main(): Failed opening required 'include/config.inc.php'

Started by Dammerich, November 07, 2005, 11:54:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dammerich

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?


Joachim Müller

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.

Dammerich

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_';
?>


Nibbler

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.

Dammerich

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='.:/')


Joachim Müller

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();

Dammerich

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