forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: abbood on April 21, 2006, 06:36:49 pm
-
Hi ,
I just downloaded ur excellent script , When I tried to install it I got this error on several places :
Warning: main(/include/debugger.inc.php): failed to open stream: No such file or directory in /home/mysite/public_html/pix/include/init.inc.php on line 26
Fatal error: main(): Failed opening required '/include/debugger.inc.php' (include_path='/usr/local/lib/php:/usr/lib/php') in /home/mysite/public_html/pix/include/init.inc.php on line 26
I fixed the path (I think) and until the script directed me to the login page which was empty !!
Can you help please.
Thank you for your time and effort
-
Fix your include path
-
Thank you for the fast answer I just edited my post can you read it again please
-
Your include path must include a dot for relative includes to work.
-
Your include path must include a dot for relative includes to work.
Sorry to be a pain can you explain more ? or give me an example.
Thank you
-
include_path='.:/usr/local/lib/php:/usr/lib/php'
-
...in php.ini of the server. If you are on shared server then this should be done by your webhost.
-
...in php.ini of the server. If you are on shared server then this should be done by your webhost.
A clean script does NOT require any changes to PHP ini, and certainly NOT changes to the include path...
I have the same problem, and getting this change done by my webhost is not an option...
Best regards,
Morten
-
Not having a dot in the include path is an abnormal, non-default setting. Most scripts require it to include a dot.
-
If your webhost refuses to enable the suggested changes then I recommend finding better webhosting. As Nibbler suggested: not having the dot in the include path will make nearly all advanced pre-made scripts (like coppermine) fail.
[Edit 2006-05-11]
Reason: fixed typo
[/edit]
-
Hello All,
I get this exact same error with the exception that my include path looks like the following:
Fatal error: main(): Failed opening required '/include/debugger.inc.php' (include_path='/usr/share/php') in /home/mysite/public_html/pix/include/init.inc.php on line 26
So, I did as directed above and made the following changes in php.ini:
; this is the entry in /etc/php.ini
; include_path = "/usr/share/php"
include_path = ".:/usr/share/php:/srv/www/htdocs/cpg145"
; I even put the path to my directly to the coppermine directory
I still get the same error: Fatal error: blah, blah, blah... (include_path='/usr/share/php')
I would have expected the include_path to reflect my changes in the php.ini. Any pointers?
Sorry I'm such a newbie.
-
@ozymandias: Have you restarted your webserver? PHP.ini settings are loaded upon startup.
-
Ummmm....no. But man I hate rookies don't you?