Apache 2 setup question

Leila Lappin damovand at yahoo.com
Wed Feb 2 19:55:59 UTC 2005


--- Steve Phillips <steve at focb.co.nz> wrote:

> 
> Check the error log (usually
> /var/log/httpd/error_log unless you have 
> changed it or have a non-redhat installation of
> apache) for clues.
> 
> Generally this means that you dont have Indexes as
> an option or an 
> index.html file in place (you can check this by
> adding an index.html file 
> to the directory) or the permissions on the
> directory are such that the 
> user apache is running as cant access that
> directories content. (astute 
> use of the ls -ld command can help you here)
> 
> HTH,
> 
> -- 
> Steve.
> 
> On Wed, 2 Feb 2005, Leila Lappin wrote:
> 
> > Hello all,
> >
> > I have apache 2 installed with root password under
> > /etc/httpd.  How can I configure this to have
> setup
> > under /home/user/public_html?  So far I have
> modified
> > the values of <DocumentRoot> and  and <Document>
> in
> > httpd.conf to point to the desired user directory.
> > But I cannot access the directory, I get 403 error
> the
> > message reads “You don’t have permission to access
> /
> > on this server”
> >
> > --
> > redhat-list mailing list
> > unsubscribe
>
mailto:redhat-list-request at redhat.com?subject=unsubscribe
> >
> https://www.redhat.com/mailman/listinfo/redhat-list
> >> -- 
> redhat-list mailing list
> unsubscribe
>
mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

Hi Steve,
Thank you for your advice I hope you can help me a
little more.  I know as a regular user (not root) I
don't have access privilege to /etc/httpd/logs.  But I
don't understand why because logs directory seems to
have been setup to give all access level to public, as
I gather from the following:

lrwxrwxrwx    1 root     root           19 Nov 15 
2003 logs -> ../../var/log/httpd

And also, I am hesitant to change the ownership of
this directory to that of the user because then the
root will not be able to use it.  How can I set this
up so that as a user I can use it?  Please let me
stress that when I have <Directory "/var/www/html/">
and "DocumentRoot "/var/www/html/" in httpd.conf
everything is cool. 

I really thank you for any other advice. I am hoping
to install "mambo" content manager under my user
account but I need to understand what type of
privileges I have as a user.

Thanks



As a user I don't have access to logs directory under
httpd.  I know I can change the ownership of that
directory to the user but I have feeling that is not
the right thing to do.  Also, that directory has been
configured to give all levels of access
(read/write/execute) to all.  What is the best thing
to do, should I change the ownership of logs
directory?




More information about the redhat-list mailing list