Quickly back to the topic about PHP. I am having a problem which I cant troubleshoot on my own, not having PHP experience... I tried to google, but the issue seems too specific and potential solutions did not work so far..
Basically, I am having 2 different errors, one is FATAL the other one is a WARNING. Both seems to be based on the same problem:
Code:
[Sun Oct 09 14:54:30 2011] [error] [client 192.xxx.xxx.xxx] PHP Warning: require_once(Horde/Autoloader/Default.php) [<a href='function.require-once'>function.require-
once</a>]: failed to open stream: No such file or directory in /var/www/htdocs/horde4/lib/core.php on line 46
Code:
[Sun Oct 09 14:54:30 2011] [error] [client 192.xxx.xxx.xxx] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required
'Horde/Autoloader/Default.php' (include_path='/var/www/htdocs/horde4/lib:.:/usr/lib/php') in /var/www/htdocs/horde4/lib/core.php on line 46
But Autoloader.php is indeed in /usr/lib/php/Horde/Autoloader/ and is owned by Apache:Apache.
Any clues why PHP cant "find" the Autoloader.php file?
A quick google search pointed out to 4 causes:
Quote:
The file is really not there, something went wrong with the installation - reinstall.
|
The file is there, I checked.
Quote:
The file is there but the web server does not have the right to open it - check permissions.
|
ls -l
Code:
-rw-r--r-- 1 apache apache 943 2011-09-24 13:31 Default.php
Quote:
There is a .htaccess file somewhere in the directory hierarchy that denies access even to you.
|
No. I checked and there is no .htaccess file in the directory hierarchy. Plus, this problem started after I last upgraded horde so my apache config is not to blame...
Quote:
There is something wrong with the include path of the PHP interpreter.
|
According to the errors in Apache logs, the include path includes /usr/lib/php which in turns include Horde/Autoloader/Default.php so the file is in the search path...
I must admit I am not sure if its a PHP problem, a Horde problem, or Apache problem... Any help will be much appreciated!