Re: Why wont this script run??

From: Søren Neigaard (s.neigaard_at_mobilethink.dk)
Date: 10/13/05

  • Next message: Benjamin Franz: "Re: Why wont this script run??"
    Date: Thu, 13 Oct 2005 12:06:20 +0200
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    
    

    I forgot to say that if i start httpd by hand, it works fine with my
    httpd.conf, only problem is that the script wont start httpd..

    Alright... heres the story. I reinstalled apache, and it works. It turns
    out that the reason it wont start is my httpd.conf, i never guessed that
    because running a "/etc/init.d/httpd" configtest gives me "Syntax OK"..?

    I have made a diff on the original httpd.conf and my problematic
    version, and attached it to this mail. I hope one of you guys can help
    me out here, why wont apache start with this httpd.conf? Is it because
    of the www user maybe (even though its a bit oftopic)?

    Note: in the diff file, the first is the original, directly followed by
    my httpd.conf

    /Søren

    Ben Stringer wrote:
    > On Thu, 2005-10-13 at 08:43 +0200, Søren Neigaard wrote:
    >
    >
    >>Ok i ran a dos2unix on the file, and that fixed it (my path to bash was
    >
    >
    > Great.
    >
    >
    >>ok). However now it only kills apache when i do a restart, it does never
    >>print out "Starting httpd" when running a restart, although if i run
    >>start it works???
    >
    >
    > Someone else suggested a sleep between the stop and start.
    >
    >
    >>Ok i agree on reinstalling apache, but how can i do this, and will it
    >>owerwrite my httpd.conf?
    >
    >
    > Depends on the RPM command you use. I think there is a freshen option,
    > but if it was my system, I'd backup the files I cared about, then remove
    > and re-install apache.
    >
    > So I'd suggest:
    >
    > cp /etc/httpd/conf/httpd.conf $HOME/saved_httpd.conf
    > cp **ANYTHING ELSE YOU CHANGED** **SOMEWHERE SAFE**
    > rpm -e httpd
    > yum install httpd
    >
    > Then put back the files you backed up.
    >
    > Please don't try any of this if you are not confident with backing up
    > any of your apache content or configuration.
    >
    > Cheers, Ben
    >
    >

    -- 
    Med venlig hilsen/Best regards
    Søren Neigaard
    System Architect
    ................................
    Mobilethink A/S
    Arosgaarden
    Åboulevarden 23, 4.sal
    DK - 8000 Århus C
    Telefon: +45 86207800
    Direct: +45 86207810
    Fax: +45 86207801
    Email: s.neigaard@mobilethink.dk
    Web: www.mobilethink.dk
    ................................
    
    

    215,216c215,216
    < User apache
    < Group apache

    ---
    > User www
    > Group www
    265c265
    < DocumentRoot "/var/www/html"
    ---
    > DocumentRoot "/home/www/html"
    290c290
    < <Directory "/var/www/html">
    ---
    > <Directory "/home/www/html">
    304c304
    <     Options Indexes FollowSymLinks
    ---
    >     Options FollowSymLinks
    375c375
    < DirectoryIndex index.html index.html.var
    ---
    > DirectoryIndex index.html index.htm.var index.htm
    960,972c960,1010
    < #
    < # VirtualHost example:
    < # Almost any Apache directive may go into a VirtualHost container.
    < # The first VirtualHost section is used for requests without a known
    < # server name.
    < #
    < #<VirtualHost *:80>
    < #    ServerAdmin webmaster@dummy-host.example.com
    < #    DocumentRoot /www/docs/dummy-host.example.com
    < #    ServerName dummy-host.example.com
    < #    ErrorLog logs/dummy-host.example.com-error_log
    < #    CustomLog logs/dummy-host.example.com-access_log common
    < #</VirtualHost>
    ---
    > NameVirtualHost 192.168.0.253
    > 
    > <VirtualHost 192.168.0.253>
    >     DocumentRoot /home/www/html
    > </VirtualHost>
    > 
    > <VirtualHost 192.168.0.253>
    >     ServerName mo.moso.dk
    >     DocumentRoot /home/www/html/mo
    > </VirtualHost>
    > 
    > <VirtualHost 192.168.0.253>
    >     ServerName so.moso.dk
    >     DocumentRoot /home/www/html/so
    > </VirtualHost>
    > 
    > <VirtualHost 192.168.0.253>
    >     ServerName www.neigaard.com
    >     DocumentRoot /home/www/html/so
    > </VirtualHost>
    > 
    > <VirtualHost 192.168.0.253>
    >     ServerName calendar.neigaard.com
    >     DocumentRoot /home/www/html/calendar
    > </VirtualHost>
    > 
    > <VirtualHost 192.168.0.253>
    >     ServerName www.koldby.com
    >     ServerAlias koldby.com
    >     DocumentRoot /home/www/html/koldby
    > </VirtualHost>
    > 
    > <VirtualHost 192.168.0.253>
    >     ServerName sommerhus.moso.dk
    >     DocumentRoot /home/www/html/sommerhus
    > </VirtualHost>
    > 
    > <VirtualHost 192.168.0.253>
    >     ServerName www.sommerhus.moso.dk
    >     DocumentRoot /home/www/html/sommerhus
    > </VirtualHost>
    > 
    > <VirtualHost 192.168.0.253>
    >     ServerName a-b-c.moso.dk
    >     DocumentRoot /home/www/html/a-b-c
    > </VirtualHost>
    > 
    > <VirtualHost 192.168.0.253>
    >     ServerName www.a-b-c.moso.dk
    >     DocumentRoot /home/www/html/a-b-c
    > </VirtualHost>
    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Benjamin Franz: "Re: Why wont this script run??"

    Relevant Pages

    • Re: Why wont this script run??
      ... I reinstalled apache, and it works. ... > DirectoryIndex index.html index.htm.var index.htm ... DocumentRoot /home/www/html ... ServerName mo.moso.dk ...
      (Fedora)
    • Problem recreating Virtual Hosts settings from Windows to BSD
      ... I was using Apache 2 on Windows 2003 server. ... The virtual hosts config portion of httpd.conf looked like: ... ServerName site1.no-ip.com ...
      (freebsd-questions)
    • httpd error starting Apache
      ... When starting Apache I get the following error. ... httpd: Could not determine the server's fully qualified domain name, ... for ServerName ...
      (Fedora)
    • Re: loaded latest edition of Apache http server on XP, and installed php on that server...
      ... You need to specify the document root (the directory that Apache will ... Once you set up your "DocumentRoot", place the files you want to run in ... ServerName www.glassangel.com.com:80 ... I suggest you take out all other extensions and add them back one at a time until you get the error again. ...
      (comp.lang.php)
    • vhosts
      ... My dear, fellow BSD enthusiasts, ... # Almost any Apache directive may go into a VirtualHost container. ... ServerName www.thedestefanos.com ... DocumentRoot /usr/www ...
      (freebsd-questions)