On Sat, Sep 29 2012, Michael Hampicke wrote: > Am 29.09.2012 17:08, schrieb Allan Gottlieb: >> On my new install USERDIR is not working. >> >> When I try http://localhost/~gottlieb, firefox says >> "you don't have permission to access /~gottlieb" >> and the apache error log says >> "client denied by server configuration: /local/allan/gottlieb/public_html" >> >> The file permissions are ok since both >> file:///home/gottlieb/public_html/index.html and >> file:///home/gottlieb/public_html >> work fine. >> > > I am sure your user has access to the files - thus allowing you to > browse them locally (file:///) - but does apache (more precisely the > systems user 'apache') have access to this files? > > Have you tried this: > > # sudu -u apache cat /home/gottlieb/public_html/index.html
I just did and the file appears on the screen. Also I checked the permissions of / /home /home/gottlieb /home/gottlieb and /home/gottlieb/public_html newlap local # ls -ld / /home /home/gottlieb drwxr-xr-x 23 root root 4096 Sep 27 23:47 / drwxr-xr-x 2 root root 4096 Sep 24 13:58 /home lrwxrwxrwx 1 root root 21 Sep 24 13:58 /home/gottlieb -> /local/allan/gottlieb newlap local # ls -ld /local/allan/gottlieb /local/allan/gottlieb/public_html/ drwxr-xr-x 41 gottlieb gottlieb 4096 Sep 29 12:42 /local/allan/gottlieb drwxr-xr-x 23 gottlieb gottlieb 4096 Sep 24 14:29 /local/allan/gottlieb/public_html/ newlap local # I'm still looking. Let me know if you think of something else. thanks, allan