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 Travis Conway on 09/29/96 11:05

you have to allow others to read it.

You have it so only root can access the file. Try this:

chmod 644 test.php

while logged in as root. This should put the file as

-rw-r--r-- 1 root root test.php

HTH

Travis
----- Original Message -----
From: "Jason Morehouse" <jm@vendorama.com>
To: <php-general@lists.php.net>
Sent: Monday, January 10, 2005 12:49 PM
Subject: [PHP] 403 not working -- apache 2 / php5 / linux


> 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?
>
> Thanks!
>
> --
> Jason Morehouse
> Vendorama - Create your own online store
> http://www.vendorama.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

 

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

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