Problem with httpd

mike mike at bristolreccc.co.uk
Tue Apr 6 09:08:28 UTC 2004


On Mon, 2004-04-05 at 12:08, mike wrote:
> On Mon, 2004-04-05 at 08:48, Matias Feliciano wrote:
> > Le lun 05/04/2004 à 09:30, mike a écrit :
> > > On Fri, 2004-04-02 at 21:18, shrek-m at gmx.de wrote:
> > > > mike wrote:
> > > > 
> > > > >With test2 (fresh clean install) httpd fails to start with the following
> > > > >Stopping httpd:                                            [FAILED]
> > > > >Starting httpd: Syntax error on line 272 of /etc/httpd/conf/httpd.conf:
> > > > >DocumentRoot must be a directory
> > > > >
> > > > >this is /etc/httpd/conf/httpd.conf
> > > > ># DocumentRoot: The directory out of which you will serve your
> > > > ># documents. By default, all requests are taken from this directory, but
> > > > ># symbolic links and aliases may be used to point to other locations.
> > > > >#
> > > > >DocumentRoot "/home/www/html/"
> > > > >  
> > > > >
> > > > 
> > > > this at least here with a fresh clean install and afair at least since 
> > > > rhl 6.x and probably longer
> > > > 
> > > > DocumentRoot "/var/www/html"
> > > > 
> > > > >This is ls -l /home/www
> > > > >drwxrwxr-x   3 mike apache 4096 Apr  2  2004 cgi-bin
> > > > >drwxrwxr-x   3 mike apache 4096 Sep 23  2003 error
> > > > >drwxrwxr-x  11 mike apache 4096 Apr  2  2004 html
> > > > >drwxrwxr-x   3 mike apache 4096 Feb 11 17:54 icons
> > > > >drwxrwxr-x  13 mike apache 4096 Sep 23  2003 manual
> > > > >  
> > > > >
> > > > 
> > > > this is at least here with a clean fresh install and after update
> > > > /var/www/*
> > > > uid = root
> > > > gid = root
> > > > 0755
> > > > 
> > > 
> > > duh - I use /home/www and this worked with a previous install of test2
> > > 
> > > > >so anyone any ideas
> > > > >
> > > > 
> > > > $ rpm -qi httpd
> > > > 
> > > > this is really a fc2t2 package ?
> > > >     thanks for wasting my time  ;-)
> > > > 
> > > ditto
> > > Can you read - fresh install
> > 
> > a fresh custom install :-)
> > 
> > Check /var/log/httpd/error_log .
> > 
> > You should replace /var/www to /home/www in many place.
> > # grep /var/www /etc/httpd/conf/httpd.conf (really fresh install).
> > DocumentRoot "/var/www/html"
> > <Directory "/var/www/html">
> > Alias /icons/ "/var/www/icons/"
> > <Directory "/var/www/icons">
> > AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"
> > <Directory "/var/www/manual">
> > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
> > # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
> > <Directory "/var/www/cgi-bin">
> > # /var/www/error/include/ files and
> > Alias /error/ "/var/www/error/"
> >     <Directory "/var/www/error">
> > 
> > Have you moved /var/www to /home ?
> > 
> 
> yep
> this appears to be a selinux problem, booting with selinux=0 http starts
> with no problem

running setfiles /etc/security/file_contexts /home fixed it
I have submitted bug 120126 asking for this to be run during install

> > > > update your package eg.
> > > > # up2date-nox --nosig -u *http*
> > > > 
> > > > 
> > > > 
> > > > -- 
> > > > shrek-m
> > > > 
> > > 
> > 
> 





More information about the fedora-test-list mailing list