Click to See Complete Forum and Search --> : Apache Guide: General Discussion


KevinReichard
07-17-2002, 03:57 PM
These talkbacks are in response to the article Apache Guide: Configuring Your Apache Server Installation (http://www.serverwatch.com/stypes/servers/article.php/1126821).

zuan writes:
Forbidden
You don't have permission to access /~zuan/ on this server.

--------------------------------------------------------------------------------

Apache/1.3.19 Server at lnx.cosco.net Port 80

i get this error msg when try to open my user dir ( public_html )
i think all the confuguration are correct or mybe the permision must be set at the user account if any one know how please tell me TQ

tekproxy responds:
Yeah you need to chmod the public_html and maby the user directory.

I _think_ it's chmod 755 (wrxr-xr-x).

The exact syntax is somewhere in the conf file. Well, it was for me.

Joe Sheble
I have Apache installed on my local server, and access the server with an IP. I have created a user and userdirectory on my server:

/home/rumfelt

In my httpd.conf I have the UserDir directive:

UserDir public_html

I've changed the permissions on this directory using:

chown -R rumfelt.nogroup ~rumfelt/public_html
chmod 770 ~rumfelt/public_html

Then I restarted the apache server and tried to access the page with:

http://(My IP Number)/~rumflet/index.html

but I get the following error:

Forbidden
You don't have permission to access /~rumfelt/index.html on this server.

My server runs as nobody.

What am I missing?

Joel responds:
I have the same problem,
http:// /~username <- doesn;t work!
http:// /~username/ <- works! damn it!..
is there any way to get it to add automatically?

do a chmod 711 on user home drive
chmod 755 on his public_html directory
chmod -R 644 public_html/*

Jonathan Nguyen responds:
Ok, try this:

chmod 777 userdirectory first and check if it works. If it does then reset the permission to the correct ones as suggested by other users.