Error restarting apache from web interface

7 posts / 0 new
Last post
#1 Fri, 12/19/2008 - 03:43
thomas

Error restarting apache from web interface

When i try to restart Apache from web interface i get this error:

Failed to re-start service : * Starting web server apache2 (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 ...fail!

How can i fix this problem? My server is a ubuntu box 8.04 with the last virtualmin with the lastest packages. Thank you!

Fri, 12/19/2008 - 04:03
andreychek

One of the Apache processes may be stuck... try doing this:

/etc/init.d/apache2 stop
killall apache2
/etc/init.d/apache2 start

And if that doesn't work, try the above again, but use "killall -9 apache2", which is a little more forceful :-)
-Eric

Fri, 12/19/2008 - 04:07
thomas

Yeah it works if i do this through the shell but how i can fix the webinterface?
Thank you a lot!

Fri, 12/19/2008 - 05:20 (Reply to #3)
andreychek

How can you fix the web interface? Did you mean to ask how to fix it "through" the web interface?

I suppose you could run the above commands using Webmin's "Command Shell" (in Webmin -> Others -> Command Shell).

Does that do what you're after?
-Eric

Fri, 12/19/2008 - 05:29 (Reply to #4)
thomas

No i mean i can fix the button that restart Apache. Anyway if it's only my problem i can solve it every time through the shell

Fri, 12/19/2008 - 05:34 (Reply to #5)
andreychek

Ahh -- well, Virtualmin just uses the system startup/shutdown scripts in /etc/init.d/ to do all that.

If this issue comes up a lot, that might be a sign of another issue... but how Virtualmin's button works is defined by going into Webmin -> Servers -> Apache Webserver -> Module Config -> System Configuration.

If you run into this issue frequently, you could all a "killall" into the "Stop" command -- or simply edit the /etc/init.d/apache2 file to perform that automatically for you.
-Eric

Fri, 12/19/2008 - 05:44 (Reply to #6)
thomas

Now it's all clear! thank you a lot!
Thomas

Topic locked