Kaixo!

On Thu, Feb 17, 2000 at 12:10:50PM -0700, Gerald Howse wrote:

> I have a simple question, but have been unable to resolve by reading the
> MAN pages etc.
> 
> I am running Mandrake 7.0 Air at: http://www.one.powersurfr.com
> 
> directive set in httpd:  UserDir public_html

> When I use Drake Conf to add a user the user is added and directory
> /user is created

Isn't it /home/user instead ?

> when try to read html in the /user directory I get an internal server
> error

UserDir public_html
means that http://localhost/~foobar/ will look at ~foobar/public_html/
in the hard disk.
That is what you set as UserDir ('public_html' in your case) is the name
of a directory under user's $HOME that will be accessible as ~username/
trough http URL.

I've:

chanae:~# grep UserDir /etc/httpd/conf/srm.conf
# UserDir: The name of the directory which is appended onto a user's home
UserDir WWW
chanae:~# ls -d /home/srtxg/WWW
/home/srtxg/WWW/

and can read files in that dir with http://localhost/~srtxg/
 
> the user index.html file is not found and is set to permissions 555
> I have tried adding  /user/public_html with index.html inside the
> directory and that doesn't help either.

Check that $HOME is world readable and world executable too; 
a directory needs to be readable to lsit ist content and 'executable' 
to be able to 'cd' to it. If that isn't the case httpd can't go trough it
to one of its subdirectories.
Do the same checking for the UserDir one.
eg in my case above:

chanae:~# ls -ld /home/srtxg 
drwxr-xr-x   92 srtxg    casa        12288 Feb 18 03:19 /home/srtxg/
chanae:~# ls -ld /home/srtxg/WWW 
drwxr-xr-x   16 srtxg    casa         2048 Dec 29 21:05 /home/srtxg/WWW/

> Thanks,
> Gerald Howse

-- 
Ki �a vos v�ye b�n,
Pablo Saratxaga

http://www.ping.be/~pin19314/           PGP Key available, key ID: 0x8F0E4975

Reply via email to