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