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
What is the exact error it gives you on a fresh install?
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
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.)
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