Posted by Jason Wong on 10/04/86 11:05
On Tuesday 11 January 2005 02:49, Jason Morehouse wrote:
> Hello. I'm not sure if this is an apache problem or php... but
> wondering if anyone has come across the same problem.
It's a file permissions problem as can be seen clearly below (which you've
thoughtfully included).
> -rw------- 1 root root test.html
> -rw------- 1 root root test.php
Only root can access those files. Unless you're running apache as root
(hopefully you're not) then apache won't be able to read those files and
hence ...
> Trying to access test.html via a browser servers up the apache 403 error
> page. The test.php however produces:
>
> Warning: Unknown: failed to open stream: Permission denied in Unknown on
> line 0 Warning: Unknown: Failed opening '/www/test.php' for inclusion
> (include_path='.:/www/php') in Unknown on line 0
> Any ideas?
Change the ownership of those files to that of the user running apache or make
them readable by others (chmod o+r).
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts
Navigation:
[Reply to this message]
|