Re: 403 not working -- apache 2 / php5 / linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Monday, January 10, 2005 12:49 PM
Subject: 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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux