Re: Weird Permissions Problem With Includes
- From: "Carl" <c.groner@xxxxxxxxx>
- Date: 30 Jan 2007 15:39:58 -0800
On Jan 30, 3:36 pm, "Carl" <c.gro...@xxxxxxxxx> wrote:
On Jan 30, 2:54 pm, "kwest" <kwes...@xxxxxxxxx> wrote:
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.
Does each included script have read permission as well?
Carl.
Sorry, that didn't come out right at all.
What I meant to ask was if the apache user had read access each script
you are trying to include? I don't believe that execute permission is
required.
Carl.
.
- Follow-Ups:
- Re: Weird Permissions Problem With Includes
- From: kwest
- Re: Weird Permissions Problem With Includes
- References:
- Weird Permissions Problem With Includes
- From: kwest
- Re: Weird Permissions Problem With Includes
- From: Carl
- Weird Permissions Problem With Includes
- Prev by Date: Re: Weird Permissions Problem With Includes
- Next by Date: Re: PHP 4.4.4 vs Perl 5.8.7 for Object Oriented server code
- Previous by thread: Re: Weird Permissions Problem With Includes
- Next by thread: Re: Weird Permissions Problem With Includes
- Index(es):
Relevant Pages
|