Permission problem - users can't access main index.php anymore
Posted
by
JMan
on Server Fault
See other posts from Server Fault
or by JMan
Published on 2010-09-29T18:01:37Z
Indexed on
2010/12/24
12:55 UTC
Read the original article
Hit count: 359
ubuntu
|permissions
From /var/www, I executed "chmod -R 774 ." and now none of my .php scripts are accessible. From my browser, when I type in mydomain.com or mydomain.com/test2.php or mydomain.com/test.php, I get the 403 Forbidden error msg.
So, I changed the permissions of 3 of the .php scripts to 775, but this didn't help either.
Here is the output from "ls -la /var/www":
drwxrwxr-- 6 john wheel 4096 2010-09-29 17:38 .
drwxr-xr-x 14 root root 4096 2010-09-27 21:15 ..
-rwxrwxr-x 1 john wheel 3353 2010-09-29 05:29 index.php
-rwxrwxr-x 1 john wheel 124 2010-09-27 23:12 .htaccess
-rwxrwxr-x 1 john john 34 2010-09-29 17:39 test2.php
-rwxrwxr-x 1 john john 26 2010-09-28 22:08 test.php
The .htaccess file does a URL mod_rewrite so typing in index.php is not needed.
Thanks for your help.
© Server Fault or respective owner