AH00095 error stopping httpd
On slackware-14.2 I iget the following in error_log when stopping apache:
[Tue Mar 13 11:35:55.001935 2018] [core:error] [pid 1307:tid 140096227051392] (2)No such file or directory: AH00095: failed to remove PID file /var/run/httpd.pid [Tue Mar 13 11:35:55.001982 2018] [mpm_event:notice] [pid 1307:tid 140096227051392] AH00491: caught SIGTERM, shutting down The file /var/run/httpd.pid exists while httpd is running. From what I've been able to find online so far (and my own intuition), this is a minor error that can be safely ignored. However, it still bothers me. I'm running Apache/2.4.29 and PHP 7.1.14 (if it were to have any influence) |
Hi,
Quote:
If it's stopped, you can use the "start" option instead of "restart": Code:
/etc/rc.d/rc.httpd start |
@bathory: it happens when httpd IS running and I am issueing /etc/rc.d/rc.httpd stop
(I am running this command for specific reasons, one of which being that "restart" does not always suffice in some contexts). The even stranger thing is that the error happens on several systems with identical configuration, but does not happen on a few others with the same configuration, yet \I haven't been able to discovery any reasons why. |
Hi,
can you post the output of : Quote:
It could be a user rights issue here... |
ls -la /var/run/httpd.pid
-rw-r--r-- 1 root root 6 Mar 14 12:47 /var/run/httpd.pid httpd is using user www and group www. ls -l /var drwxr-xr-x 12 root root 4096 Mar 14 12:47 run/ These are the same permissions as used on other slackware-14.1 systems with same setup (just different versions according to distro). |
Quote:
Quote:
|
interesting issue andrixnet.
Despite what I read in `man apachectl`, looking at the ACMD Variable in the /usr/sbin/apachectl script, it sure looks to me like the -k option in /etc/rc.d/rc.httpd is undesired ? Do you still get the errors in the log if you test /etc/rc.d/rc.httpd without any -k flags ? HTH -- kjh Removed the -k flags from /etc/rc.d/rc.httpd: Code:
|
All times are GMT -5. The time now is 05:13 AM. |