Permision of /var/www/html

neoblu

Verified User
Joined
Oct 16, 2008
Messages
18
I have a problem with apache.
The directory /var/www/html is no longer accessible (webmail, phpmyadmin, all...)
I have a 403 error.

I tried to give the command
chmod-R 755/var/www/html
webapps.webapps chown-R /var/www/html

The result does not change.
I use suPHP.
What can I do? :confused:
 
Please check the permissions of /var/www, not /var/www/html:
Code:
ls -l /var | grep www
 
Since a lot of DirectAdmin users may not understand the fine point of the execute bit on a directory, this may be a good place to explain it:

If you set the execute bit as suggested by smtalk, you've ;told apache to let anyone not in the user or group owning the file to descend into the Directory. Even if a directory is given read rights, you can't descend into it to read the files in it unless the execute bit is set.

Jeff
 
Back
Top