Apache problem with Per-user Web Directories (public_html)

This is a discussion on Apache problem with Per-user Web Directories (public_html) within the Linux Web Servers forums, part of the Web Server and Related Forums category; I have a Mandrake Linux with Apache installed and seemingly working. I created "public_html" directories for several of ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-30-2003
Sam Cantrell
 
Posts: n/a
Default Apache problem with Per-user Web Directories (public_html)

I have a Mandrake Linux with Apache installed and seemingly working.
I created "public_html" directories for several of my "users" and
wanted to access via the ~user construct. Funny thing, some work and
others don't! I get web pages from some users and a "Forbidden" error
for others. I've looked at permissions of the user, the public_html
directory and files within; they all look the same. What am I doing
wrong??

Thanks in advance,
--Sam
  #2 (permalink)  
Old 07-01-2003
Keith Keller
 
Posts: n/a
Default Re: Apache problem with Per-user Web Directories (public_html)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <cad1c8e.0306301418.148bce26@posting.google.com> , Sam Cantrell wrote:
> I have a Mandrake Linux with Apache installed and seemingly working.
> I created "public_html" directories for several of my "users" and
> wanted to access via the ~user construct. Funny thing, some work and
> others don't! I get web pages from some users and a "Forbidden" error
> for others. I've looked at permissions of the user, the public_html
> directory and files within; they all look the same. What am I doing
> wrong??


Not looking at and/or posting your relevant error_log entries.

- --keith

- --
kkeller-mmmspam@wombat.san-francisco.ca.us
(try just my userid to email me)
alt.os.linux.slackware FAQ: http://wombat.san-francisco.ca.us/cgi-bin/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj8AxwUACgkQhVcNCxZ5ID8TIwCgkP0QPKq2nf QAdkfXr7savK4e
HWYAn0UyIhZGVMngaZgI5x0vqlBqUuIN
=1NJT
-----END PGP SIGNATURE-----
  #3 (permalink)  
Old 07-01-2003
David Efflandt
 
Posts: n/a
Default Re: Apache problem with Per-user Web Directories (public_html)

On 30 Jun 2003 15:18:54 -0700, Sam Cantrell <cantrell_sam@hotmail.com> wrote:
> I have a Mandrake Linux with Apache installed and seemingly working.
> I created "public_html" directories for several of my "users" and
> wanted to access via the ~user construct. Funny thing, some work and
> others don't! I get web pages from some users and a "Forbidden" error
> for others. I've looked at permissions of the user, the public_html
> directory and files within; they all look the same. What am I doing
> wrong??


Have you looked at all system directories in the path (from /). If all
directories in the path do not have at least x permission for apache
(typically considered other), apache cannot get to their public_html.

It is common for RH/Mdk to make a user's home dir 700 by default. Try at
least 701, which allows "others" (including apache) to access that dir,
but not do a dir listing (r allows dir listing).

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
  #4 (permalink)  
Old 07-01-2003
Sam Cantrell
 
Posts: n/a
Default Re: Apache problem with Per-user Web Directories (public_html)

It's always something STUPID! I noticed that I had the directory
spelled "Public_html" rather than "public_html"!!!!!

Now it works! Thanks, I noticed whilst checking permissions!


Keith Keller <kkeller-spammmm@wombat.san-francisco.ca.us> wrote in message news:<6ugqdb.kku.ln@goaway.wombat.san-francisco.ca.us>...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> In article <cad1c8e.0306301418.148bce26@posting.google.com> , Sam Cantrell wrote:
> > I have a Mandrake Linux with Apache installed and seemingly working.
> > I created "public_html" directories for several of my "users" and
> > wanted to access via the ~user construct. Funny thing, some work and
> > others don't! I get web pages from some users and a "Forbidden" error
> > for others. I've looked at permissions of the user, the public_html
> > directory and files within; they all look the same. What am I doing
> > wrong??

>
> Not looking at and/or posting your relevant error_log entries.
>
> - --keith
>
> - --
> kkeller-mmmspam@wombat.san-francisco.ca.us
> (try just my userid to email me)
> alt.os.linux.slackware FAQ: http://wombat.san-francisco.ca.us/cgi-bin/fom
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iEYEARECAAYFAj8AxwUACgkQhVcNCxZ5ID8TIwCgkP0QPKq2nf QAdkfXr7savK4e
> HWYAn0UyIhZGVMngaZgI5x0vqlBqUuIN
> =1NJT
> -----END PGP SIGNATURE-----



It's always something STUPID! I noticed that I had the directory
spelled "Public_html" rather than "public_html"!!!!!

Now it works! Thanks, I noticed whilst checking permissions!
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0