You are here: Re: [PHP] 403 not working -- apache 2 / php5 / linux « PHP « IT news, forums, messages
Re: [PHP] 403 not working -- apache 2 / php5 / linux

Posted by Brad Pauly on 10/04/76 11:05

On Mon, 10 Jan 2005 13:49:26 -0500, Jason Morehouse <jm@vendorama.com> wrote:
> Hello. I'm not sure if this is an apache problem or php... but
> wondering if anyone has come across the same problem.
>
> -rw------- 1 root root test.html
> -rw------- 1 root root test.php
>
> 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?

It's a permissions problem. Both of those files are owned by the root
user and I would guess that apache is not running as root (and it
shouldn't be!). Find out who apache is running as (commonly www or
nobody) and give that user access to those files.

Brad

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация