I'm going to host a really simple, static, readonly website on apache but failed with file permission settings.
Here's my config file under
/etc/apache2 which is OK:
<VirtualHost *:80> ServerAdmin email@example.com DocumentRoot /home/jeffz/sites/main/root/ ServerName some-url.com ErrorLog /home/jeffz/sites/main/logs/apache-error.log ...
and the file permissions:
$ ls -l / | grep home drwxr-xr-x 5 root root 4096 2010-09-29 09:06 home $ ls -l /home | grep jeffz drwsrwsr-x 7 jeffz jeffz 4096 2010-10-09 10:18 jeffz $ ls -l /home/jeffz | grep sites drwx--x--x 6 jeffz sites-web 4096 2010-09-12 15:26 sites
www-data (which is the account running apache) is in group
$ cat /etc/group | grep sites-web sites-web:x:1002:www-data
It work perfectly fine now since I set the permission
711 to the
sites, but when I set the permission
710 and Apache shows permission denied.
Does Apache use another account instead of
www-data to load file from the file system? How can I remove the last
x permission from