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
    no listening sockets available, shutting down
    Unable to open logs

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

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 :slight_smile:

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

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?

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

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.

Now it’s all clear! thank you a lot!