Submitted by joshbarron on Wed, 02/29/2012 - 17:27
Hello,
I have a strange issue with Apache on my Virualmin 3.90 Server.
Apache is running (I can see it on the process list), however Virtualmin sees it as not running, the Webmin Module for Apache shows it as not started, and I can't restart without manually killing all httpd processes, since its already running, using Port 80.
Status:
Active
Comments
Submitted by andreychek on Wed, 02/29/2012 - 21:01 Comment #1
Howdy -- I'll toss out one idea here first, and if that doesn't work, we'll try tweaking your Virtualmin config.
But before we go tweaking anything, log into your server as root, and run these commands:
/etc/init.d/httpd stop
(wait 10 seconds)
killall -9 httpd
(wait 10 more seconds)
/etc/init.d/httpd start
/etc/init.d/webmin start
After you type all those commands, does Apache show up as running?
Submitted by joshbarron on Wed, 02/29/2012 - 21:31 Comment #2
I don't even have to restart webmin, I just have to "killall -9 httpd" and then Webmin is able to start Apache (even though it was technically already running).
The strangest thing is that Apache will be running for a few days, I'll come back and check the server and notice that the Monitor Status page shows it down again. Sure enough, I'll check the Webmin module (which will show it as not started), and the INIT module, which won't be able to start it either. The error comes up that a process is already running using ::80 and :80. HTTPD will be running and I'll have to kill it all over again.
Submitted by andreychek on Wed, 02/29/2012 - 21:37 Comment #3
Okay... next time that happens, can you run this command and paste in the output:
ps auxw | grep http
I'd like to see if something is unusual about the processes that are running. Thanks!
Submitted by joshbarron on Wed, 02/29/2012 - 21:50 Comment #4
Ok I will try that, Thanks
Submitted by joshbarron on Mon, 03/12/2012 - 18:06 Comment #5
It has happened again.
Below is the output requested.
Submitted by andreychek on Mon, 03/12/2012 - 18:13 Comment #6
Well, nuts, that all looks just fine.
How about this -- what output do you receive with this command:
cat /var/run/httpd.pid
Also, if you go into Webmin -> Servers -> Apache -> Module Config -> System Configuration, what is "Path to Apache PID file" set to?