[nzlug] Apache Restarting Problems
Steve Holdoway
steve at greengecko.co.nz
Wed Mar 19 13:17:41 NZST 2008
This is quite common in the real world for apache... and why a restart is not always the best solution - simply because the shutdown hasn't necessarily completed by the time the stop script has completed.
Calling /etc/init.d/apache2 stop, checking with ps, then /etc/init.d/apache2 start is best, or sticking a couple of second delay in the script between the stop and start is a common hack/bodge too.
Steve
On Wed, 19 Mar 2008 14:01:18 +1300
"Greg Fawcett" <greg at vig.co.nz> wrote:
> The error shows it can't stop httpd (apache), so when it tries to restart
> it, it finds it can't use that port - the previous instance is still using
> it.
>
> Check the error logs (/var/log - it might be httpd or apache) to see if
> there is any reason given for failing to stop. From memory (I'm rusty with
> Redhat) you can use "service httpd stop" and "service httpd start" instead
> of referencing the init.d script.
>
> Cheers!
> Greg.
>
>
> On 19/03/2008, Rob <bubaphex at gmail.com> wrote:
> >
> > Hi all,
> >
> > I'm having having some issues with restarting apache. The server is
> > currently using fedora 8.
> >
> > This is the error im getting:
> >
> > [root@<blank> ~]# /etc/rc.d/init.d/httpd restart
> > Stopping httpd: [FAILED]
> > Starting httpd: (98)Address already in use: make_sock: could not bind to
> > address [::]:80
> >
> > (98)Address already in use: make_sock: could not bind to address
> > 0.0.0.0:80
> > no listening sockets available, shutting down
> > Unable to open logs
> > [FAILED]
> >
> >
> > I'm Quite new at this, could any one help ?
> > _______________________________________________
> > NZLUG mailing list NZLUG at linux.net.nz
> > http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
> >
>
>
>
> --
> Phone: +64 3 409 8165
> Mobile: +64 21 333 291
> Fax: +64 3 974 6810
> Web: www.vig.co.nz
> _______________________________________________
> NZLUG mailing list NZLUG at linux.net.nz
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.linux.net.nz/pipermail/nzlug/attachments/20080319/ba559721/attachment.pgp
More information about the NZLUG
mailing list