Apache 2.4.61 and "failed to remove PID file"

12 views
Skip to first unread message

Massimo S.

unread,
Sep 7, 2026, 7:41:29 AMSep 7
to apa...@googlegroups.com
Hi Paul,

i've a bit of "spare time" and i'm watching some exit about apache..

Build: httpd-2.4.61-os2-debug-20240707.zip

I guess there is still around the http.PID issue..

Sometimes i get:

[Mon Sep 07 12:13:49.937000 2026] [core:error] [pid 415:tid 1] (13)Permission denied: AH00095: failed to
remove PID file x:/apache/logs/httpd.pid

[Mon Sep 07 12:13:49.937000 2026] [mpm_mpmt_os2:notice] [pid 415:tid 1] AH00201: caught SIGTERM, shutting down



This part probably is the rexx fault daemon that try to restart apache, but it fail:

[Mon Sep 07 12:14:20.000000 2026] [core:warn] [pid 2029:tid 1] AH00098: pid file x:/apache/logs/httpd.pid
overwritten -- Unclean shutdown of previous Apache run?


[Mon Sep 07 12:14:20.000000 2026] [core:error] [pid 2029:tid 1] (OS 32)SYS0032: The process cannot access the
file because it is being used by another process. : AH10231: httpd.exe: Failed creating pid file
x:/apache/logs/httpd.pid.wgWIqv

There are no httpd "zombi" processes, there are no "php.exe stuff" (i don't use php.exe at all), therea re no
issues on sockets/stack IP.

I don't understand this message: Permission denied: AH00095: failed to remove PID file x:/apache/logs/httpd.pid

If i restart apache manually it start again correctly, no need to reboot the VM.

Any help?


massimo

Massimo S.

unread,
Sep 30, 2026, 5:33:37 AM (9 days ago) Sep 30
to apa...@googlegroups.com
Hi all,

is there any way to monitor which process is keeping httpd.pid file open?
I'm sure it's not apache, since in those moments it already exited.

Since i've tried psfiles, but it don't show exactly the process or the file
or probably i'm not able to.

The rexx fault-daemon erase httpd.pid and also the temp files httpd.pid.something,
i guess that it's hard that httpd.pid is kept open by it.

Since it do a call sysleep 2, erase .pid /n, another syssleep after another erase
and after it start a cmd that start apache, and in the first lines it
do another httpd.pid.. erase /n then start apache (for real).

I don't understand why this situation happen exactly.

Thanks for any help.

massimo
Reply all
Reply to author
Forward
0 new messages