Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Fatal Error after Install - Includes are picking up a bad path  (Read 2515 times)

0 Members and 1 Guest are viewing this topic.

Jagmeister

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Fatal Error after Install - Includes are picking up a bad path
« on: October 15, 2004, 03:32:38 am »

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
« Last Edit: October 17, 2004, 11:56:39 am by GauGau »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Fatal Error after Install - Includes are picking up a bad path
« Reply #1 on: October 15, 2004, 03:40:52 am »

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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Fatal Error after Install - Includes are picking up a bad path
« Reply #2 on: October 15, 2004, 03:50:25 am »

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.
Logged

Jagmeister

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Fatal Error after Install - Includes are picking up a bad path
« Reply #3 on: October 16, 2004, 09:37:09 pm »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal Error after Install - Includes are picking up a bad path
« Reply #4 on: October 17, 2004, 11:55:38 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.