Turns out that the default is no tilde (i.e. the "~" character) in the userid and permissions have to be ??5 on public_html, all subdirectories and the directory below it (i.e. the users home directory).
So to access dudes website, you enter:
http://www.myserver.net/dude/index.html
There MUST be an index.html as the system by default does not display files.
Another issue is caps. I have a user whith a capitol letter in her name and I believe that web addresses are caseless. Getting around this was easy enough. I just made the link "audrey" instead of "Audrey".
Jim C wrote:
Once quite a while ago I setup apache on my local net for develpment reasons. I need to do that again but I can't remmeber what it was I did to make public_html in the user directories available using links. I've no intention of trying to run it publicly as I know that this would require much more study to do so safely.
I've been unable to clarify this issue using Google or the documentation from apache. I believe this issue is a (slightly) different one from just establishing UserDir, etc. and as I recall I had a devil of a time figureing it out last time also.
Here's what I've got for permissions.
[EMAIL PROTECTED] public_html]# ls -l / | grep lcl drwxr-xr-x 3 root root 72 Jan 21 00:03 lclusr/
[EMAIL PROTECTED] public_html]# ls -l /lclusr/ total 2
drwxr-xr-x 25 jim jim 1832 Mar 7 23:43 jim/
[EMAIL PROTECTED] public_html]# ls -l /lclusr/jim/ | grep public_html drwxr-xr-x 2 jim jim 48 Mar 7 23:42 public_html/
[EMAIL PROTECTED] public_html]# pwd
/lclusr/jim/public_html
...and here are the links. Note that I've tried it with both root ownership of the link and user ownership with no dice. Works fine (I get the standard apache base)
[EMAIL PROTECTED] html]# pwd
/var/www/html
[EMAIL PROTECTED] html]# ls -l
total 21
drwxr-xr-x 2 root root 320 Mar 8 00:00 addon-modules/
-rw-r--r-- 1 root root 5575 Sep 6 18:58 index.shtml
lrwxrwxrwx 1 jcolling dusers 26 Mar 8 00:39 jcolling -> /home/jcolling/public_html/
lrwxrwxrwx 1 jim jim 23 Mar 8 00:49 jim -> /lclusr/jim/public_html/
lrwxrwxrwx 1 root root 43 Jan 21 00:28 manual -> ../../../usr/share/doc/apache-manual-1.3.26/
-rw-r--r-- 1 root root 96 Mar 8 00:36 newindex.html
-rw-r--r-- 1 root root 427 Sep 6 18:58 optim.html
-rw-r--r-- 1 root root 557 Sep 6 18:58 platform.html
[EMAIL PROTECTED] html]#
Is there something I am going to have to set within the httpd configs? I don't remember having to do this last time.
Jim C.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
