Re: Why wont this script run??
From: Søren Neigaard (s.neigaard_at_mobilethink.dk)
Date: 10/13/05
- Previous message: gb spam: "Re: Why wont this script run??"
- In reply to: Ben Stringer: "Re: Why wont this script run??"
- Next in thread: Søren Neigaard: "Re: Why wont this script run??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 13 Oct 2005 10:48:45 +0200 To: For users of Fedora Core releases <fedora-list@redhat.com>
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
- Previous message: gb spam: "Re: Why wont this script run??"
- In reply to: Ben Stringer: "Re: Why wont this script run??"
- Next in thread: Søren Neigaard: "Re: Why wont this script run??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|