This issue is becoming critical for many cPanel customers. Can cPanel recommend a workaround until they have a solution. This has been reported as fixed in upstream versions of Apache.
I have seen the following recommendations:
- Switched to piped logs
- Hard restart apache via cron
However, this does not address the problem of orphaned PHP processes already in existence.
In our testing, we find on Apache 2.0 w/prefork MPM, the problem only exists with graceful restarts. Full restarts do not cause this.
Since cPanel supplies the restart scripts for Apache, can you supply one that will do a forceful restart always?
We just rebuilt Apache with the same profile as 2 days ago. But this time we cleared out the easyapache src tree to force a new download. This rebuild does not appear to suffer from the FastCGI issues.
With the prior build a graceful restart would not terminate fast-cgi processes. Now it does.
We need to let the system run for a bit more but this may have resolved it.
If we switch out the prior mod_fastcgi.so with the current one, the problem returns.
So you may want to try clearing easyapache src directory prior to any attempts to fix this issue.
Appears cPanel may have pushed a new EA build during our work. Try to rebuild your profile but make sure you have the latest EA by clearing out the src directory.