Re: 403 not working -- apache 2 / php5 / linux
| From: | Travis Conway | Date: | Mon, 10 Jan 2005 21:04:56 +0000 |
| Subject: | Re: 403 not working -- apache 2 / php5 / linux | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206019@lists.php.net to get a copy of this message | ||
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.phpTrying 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