Weird Permissions Problem With Includes



I just setup a new server with PHP 5 and ran into a problem with
includes. Everytime I call something like

require_once './includes/test.inc'

I get a permissions message like this:

Warning: require_once(./includes/test.inc) [function.require-once]:
failed to open stream: Permission denied in /var/www/html/test2.php on
line 3

Fatal error: require_once() [function.require]: Failed opening
required './includes/test.inc' (include_path='.:/php/includes:/var/www/
html/includes') in /var/www/html/test2.php on line 3

I verified that apache has exectuble permissions all the way through /
var/www/html. As you can see my include path is correct (unless
someone sees something I don't). This is getting really frustrating as
I have spent several hour trying to debug this, any assistance would
be greatly appreciated.

I was able to run the script fine from the command line as well.

.



Relevant Pages

  • Re: write with cURL
    ... execute permissions. ... This is assuming that the PHP script runs ... of potential security risks from other users on the same server. ... Apache as the global web server user and thus needs world write ...
    (alt.php)
  • Re: write with cURL
    ... execute permissions. ... This is assuming that the PHP script runs ... of potential security risks from other users on the same server. ... web server itself is part of the group. ...
    (alt.php)
  • Re: write with cURL
    ... offers PHP, if they don't allow PHP to open and write ... Check the permissions on the directory the file is ... such as chmod 0666 test.txt ... their server configuration is, too, though. ...
    (alt.php)
  • Re: write with cURL
    ... execute permissions. ... This is assuming that the PHP script ... runs as the global web server user (and it surely does given ... Apache as the global web server user and thus needs world write ...
    (alt.php)
  • Re: write with cURL
    ... offers PHP, if they don't allow PHP to open and write ... Check the permissions on the directory the file is ... such as chmod 0666 test.txt ... their server configuration is, too, though. ...
    (alt.php)