Advanced search  

News:

cpg1.5.28 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.26 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fatal error: main(): Failed opening required 'include/config.inc.php'  (Read 12062 times)

0 Members and 1 Guest are viewing this topic.

Dammerich

  • Coppermine newbie
  • Offline Offline
  • Posts: 4

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?

« Last Edit: November 09, 2005, 04:11:47 PM by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
« Reply #1 on: November 08, 2005, 09: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.
Logged

Dammerich

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
« Reply #2 on: November 08, 2005, 08: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_';
?>

Logged

Nibbler

  • Guest
Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
« Reply #3 on: November 08, 2005, 08: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.
Logged

Dammerich

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
« Reply #4 on: November 08, 2005, 11: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='.:/')

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
« Reply #5 on: November 09, 2005, 12:05:26 AM »

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

Dammerich

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Fatal error: main(): Failed opening required 'include/config.inc.php'
« Reply #6 on: November 09, 2005, 03: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


Logged
Pages: [1]   Go Up
 

Page created in 0.069 seconds with 19 queries.