Fatal Error after Install - Includes are picking up a bad path Fatal Error after Install - Includes are picking up a bad path
 

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 after Install - Includes are picking up a bad path

Started by Jagmeister, October 15, 2004, 03:32:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jagmeister

I am installing on a Win2k Server with IIS.
After the install script runs and I hit the login.php script I get the following error message:

Fatal error: Failed opening required 'include/config.inc.php' (include_path='c:\php4\pear') in D:\blah-blah\cpg132\include\init.inc.php on line 201

The include_path c:\php4\pear is wrong.  I looked on the server and it should be c:\php\pear.  I have no idea where the php4 is coming from.  It is not in config.inc.php or init.inc.php

Anyone have any clues?

Matt

kegobeer

You haven't properly set up your server - this has nothing to do with Coppermine.  I recommend reading the php documentation at www.php.net on how to install PHP on an IIS server.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Jagmeister

Hmmm... well... it's not my server.  If it was it would be running apache/linux.

I did check the php.ini file but I did not see the offending include path.

I suppose I'll have to wait for the sysadmin guy to fix it.  Maybe I'll poke around in the php documentation a little.

Jagmeister

Solved my problem by copying the php.ini file from c:\winnt to the root of my website. 
This I can modify at will and since php looks in the root of my website first it gets executed  before the system default.

I corrected the actual problem by uncommenting the include_path statement which I believe the sysadmin should have done in the first place.

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2" 
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;c:\php\includes"


I also modified the gd extension so it would use gd2 instead of gd1.

;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll


I don't know if Coppermine will detect that I am now using gd2 or not.  It selected gd1 during the install process.  Since I am just getting started I think I may just nuke my tables, delete the install.lock file and re-install from scratch.

Joachim Müller

Glad you were able to solve this on your own. You won't have to re-install coppermine. Just log in as admin, go to "config" from the admin menu and change "Method for resizing images" from "GD1" to "GD2" and save your settings, that's all.

Joachim