Well, first off, a note about Virtualmin’s support – Virtualmin only technically supports Ubuntu up to version 10.04, the latest LTS release. So 10.10 might work, but it’s also possible you could run into strange problems
If you log into your server as root over SSH, and type this on the command line, what output do you receive:
/etc/init.d/apache2 restart
Do you see any errors? And Apache really is running after all that… it’s serving files and such for your websites?
Thanks for the quick reply Eric. Haha, yeah, guess this is one of those strange problems!
The output from ssh/putty:
Restarting web server apache2
… waiting …
The weird thing about this entire error situation is that Apache is definitely running. This whole thing is rather odd and wanted to bring it to Virtualmin’s attention in case a minor fix needed to be made for the next version.
Two effects might cause this, probably in “cooperation”. Apache might hang and thus not want to be restarted, and maybe the path to the PID file has changed, thus Vmin does not recognize a running Apache.
The former you can check by killing any running Apache processes. Do ps aux and look for the PIDs of Apache, then kill -9 for all PIDs.
Then a /etc/init.d/apache2 start should bring it back up. See then if it serves web pages.
If so, and if Vmin still says it’s not running, check if the PID file path (whole file is needed, not just the path to it) in the config of the Webmin Apache module is correct.
You may want to take a look at Webmin -> Servers -> Apache Webserver -> Module Config -> System Configuration : Path to Apache PID file. Set that from “work out automatically” to the actual path and filename of your Apache PID file.