The apache error log is showing the errors that the script is having, which is the require once calls. Note this section of the log file:
Quote:
[Fri Mar 25 01:28:58 2005] [error] PHP Warning:
main(./libraries/common.lib.php): failed to open stream:
Permission denied in /var/www/html/php/index.php on line 10
[Fri Mar 25 01:28:58 2005] [error] PHP Fatal error:
main(): Failed opening required './libraries/common.lib.php'
(include_path='.:/usr/lib/php') in /var/www/html/php/index.php on line 10
|
Apparently, the http server does not have permission to access the files that you're trying to include.
I would:
* Verify that the files, in fact, exist.
* Note their owner/group/permissions
* Note owner/group of http instance, as set in the httpd.conf file
* Test a simple php script, something as simple as:
Code:
<?php phpinfo(); ?>
If that works fine w/o giving errors to the error_log file, then I would do a simple php script to test the read permissions on the library files you're including, and their paths. Maybe something like:
Code:
<?php
$lib = '/usr/lib/php/libraries/grab_globals.lib.php';
$pieces = explode('/', $lib);
array_shift($pieces);
$path = '';
foreach($pieces as $piece) {
if($piece == '') { next; }
$path .= '/' . $piece;
if(is_readable($path)) {
echo "I have permission to read '$path'<BR>\n";
}
else {
echo "Cannot read '$path!'<BR>\n";
exit;
}
}
?>
That will tell you where, in the path, the
permission denied is happening.
This would a start. (=