Win2K Path problems in init.ini.php w/includes & require Win2K Path problems in init.ini.php w/includes & require
 

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

Win2K Path problems in init.ini.php w/includes & require

Started by Jagmeister, January 26, 2004, 09:47:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jagmeister

I am trying to install Coppermine on a Win2K/IIS platform and having troubles with the default install path not being passed (or set) properly.

I manually entered the hard path  (D:/homepages/blah/blah) in init.inc.php but it finally errored out with a Critical Error when it called the load_template function.

How do I configure the proper "root" path of the installation?  I am just learning PHP so not terribly familiar with where the global variables are being  defined.

I'm guessing in the config.inc.php file I need something like:
$CONFIG['HTTP_ROOT'] =                "D:/homepages/blah/blah";

I made up the HTTP_ROOT thing...... but I think you know what I mean.

Thanks,
Matt

hyperion

What is the exact error it gives you on a fresh install?
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Jagmeister

I don't remember exactly.  I will go back and remove my customizations and run the install script again.

Time Passes.......

First error is:
Fatal error: Failed opening required 'include/config.inc.php' (include_path='c:\php4\pear') in D:\homepages\rlmartin\mistycastle\gallery\include\init.inc.php on line 135

Following errors were similar, just different lines in init.inc.php

The gallery folder is where I installed the app.  It's just off the root of my website.

If php info is relevant you can access the following:
http://www.mistycastle.com/gallery/test.php  which provides phpinfo()

Thanks,

Matt

hyperion

Okay, this occurs because the include library path has been set in php.ini to point to your PEAR istallation.  I assume you want to keep PEAR, so you need to edit the require/include calls that generate the errors.  You should do like so each time you get this error:

require(realpath('include/config.inc.php' ));

(use the require or include function as appropriate)

(Assuming PHP 4 or higher - If not, you must enter in the full path by hand.)
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Jagmeister

That fixed it.

Thanks a bunch.  I would never have figured that out on my own.  I'll have to remember that little trick.

Regards,
Matt