These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Cannot stop/restart Apache on the new forum.
Since the last update to Webmin
... Oct 11 18:20:39 Updated: webmin-1.660-1.noarch Oct 11 18:21:03 Updated: usermin-1.570-1.noarch
I have not been able to /stop or restart Apache on one of my VPS.
When I reboot the server, Apache is running and all my sites are online. When I try to restart the daemon through a terminal though, this is what I get (consistently):
$ sudo service httpd graceful httpd not running, trying to start (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
After this, Webmin's System Information page indicates that the Apache Webserver service has stopped but it is not really because my sites are still responding.
Let me know if you require any more details.
Howdy,
Well, that's not likely related to the Webmin or Usermin version, as the issue you're seeing is within Apache... however, were any Apache modules enabled recently? That's one possible cause.
What distro/version is it that you're using?
And what is the output of this command:
rpm -qa | grep httpd
I am glad that this issue is unrelated to the Webmin upgrade. I typically restart Apache at least once a day but noticed this error for the first time only after this last (Webmin) upgrade, so I surmised that it was related.
"Apache modules enabled recently?"
No , no Apache modules were enabled or disabled recently - at least I cannot recall doing anything out of the ordinary these past few days (I have more than one server to manage).
The answer to your last 2 questions:
Howdy,
Hmm, yeah that all appears normal.
We've occasionally heard about issues like that, primarily on CentOS systems... and it's occasionally resolved by tweaking this or that module :-)
What is the output of this command:
ls /etc/httpd/conf.d/
The output of the command is:
There doesn't seem to be anything out of the ordinary there.
In case you're wondering about the contents of bad_pattern_in_ua.conf file, it is just a file with a few lines of BrowserMatch and BrowserMatchNoCase patterns and setting some environment variables when a match is found.
Since I have not found the solution yet, I'd update this thread with new information as I gather them.
Earlier today, when I looked at the httpd.pid file, this is what I found:
However, when I list the processes, I don't find this PID anywhere!
This, I am sure, is the main reason I cannot STOP (or restart) the apache/httpd daemon, right?
What could cause the main/parent httpd process to stop but not update the httpd.pid file?
Hmm, what kind of VPS do you have... Xen, KVM, OpenVZ?
That's actually a good question, andreychek, because I share the httpd configuration files for this VPS with another one.
This VPS has this problem and the other one just runs normally and smoothly. This problem VPS runs on OpenVZ, the trouble-free one runs on Xen.
Howdy,
Okay, can you post the contents of your /proc/user_beancounters file?
-Eric
As per your request, Eric.
I am seeing this file for the very first time. I'm going to have to read up on it next. :-)
Howdy,
I was curious if you were running into any resource issues... maybe an Apache process was being killed off due to RAM constraints, for example.
We see quite a few issues relating to OpenVZ and resource problems... however, it doesn't appear that you're seeing that. If you were hitting resource issues, they would show up in the "failcnt" field.
Out of curiosity, what does "free -m" show?
-Eric
As per your request, Eric.