Virtualmin can't detect started Apache

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

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?

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.

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!

Ok I will try that, Thanks

It has happened again.

Below is the output requested.

[root@Omen ~]# ps auxw | grep http root 1495 0.0 1.6 332744 16996 ? Ss 22:54 0:00 /usr/sbin/httpd apache 1501 0.0 0.4 247752 4952 ? S 22:54 0:00 /usr/sbin/httpd apache 1539 0.0 0.9 332744 10108 ? S 22:54 0:00 /usr/sbin/httpd apache 1540 0.0 1.0 332892 10844 ? S 22:54 0:00 /usr/sbin/httpd apache 1541 0.0 0.9 332744 10204 ? S 22:54 0:00 /usr/sbin/httpd apache 1542 0.0 1.0 332892 10908 ? S 22:54 0:00 /usr/sbin/httpd apache 1543 0.0 0.9 332744 10168 ? S 22:54 0:00 /usr/sbin/httpd apache 1544 0.0 0.9 332744 10136 ? S 22:54 0:00 /usr/sbin/httpd apache 1545 0.0 0.9 332744 10104 ? S 22:54 0:00 /usr/sbin/httpd apache 1546 0.0 0.9 332744 10104 ? S 22:54 0:00 /usr/sbin/httpd root 2811 0.0 0.0 61188 792 pts/0 S+ 23:00 0:00 grep http

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?