Problem with httpd

Matias Feliciano feliciano.matias at free.fr
Mon Apr 5 07:48:13 UTC 2004


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 ?

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





More information about the fedora-test-list mailing list