Apache occasionally crashes, output from the apache error_log blow.
My PHP Handler is DSO, I have Apache suEXEC ON and Apache Ruid2 ON. I am running Apache Apache 2.4.6. The issue started around the same time I changed from SuPHP to DSO and enabled Apache Ruid2.
This post on Apache 2 Crashing recommended adding these lines to httpd.conf file:
After I did that, Apache refused to start, see error below:
But then I read this post which says that for Apache 2.4 we need to use:
The above at least gets Apache started, but s a relative newbie, I was surprised that I needed to hack the httpd.conf file. Is this a recommended approach?
My PHP Handler is DSO, I have Apache suEXEC ON and Apache Ruid2 ON. I am running Apache Apache 2.4.6. The issue started around the same time I changed from SuPHP to DSO and enabled Apache Ruid2.
Code:
[Mon Nov 04 07:59:57.729935 2013] [core:error] [pid 2186] [client 85.25.133.190:59918] AH00126: Invalid URI in request GET HTTP/1.1 HTTP/1.1
[Mon Nov 04 07:59:57.803113 2013] [cgi:error] [pid 3120] [client 85.25.133.190:59941] script not found or unable to stat: /usr/local/apache/cgi-bin/php
[Mon Nov 04 07:59:57.845310 2013] [cgi:error] [pid 3119] [client 85.25.133.190:59995] script not found or unable to stat: /usr/local/apache/cgi-bin/php5
[Mon Nov 04 07:59:57.884308 2013] [cgi:error] [pid 2349] [client 85.25.133.190:60014] script not found or unable to stat: /usr/local/apache/cgi-bin/php-cgi
[Mon Nov 04 07:59:57.929495 2013] [cgi:error] [pid 30334] [client 85.25.133.190:60041] script not found or unable to stat: /usr/local/apache/cgi-bin/php.cgi
[Mon Nov 04 07:59:57.975371 2013] [cgi:error] [pid 3059] [client 85.25.133.190:60066] script not found or unable to stat: /usr/local/apache/cgi-bin/php4
[Mon Nov 04 08:24:54.354599 2013] [:error] [pid 6496] [client 180.76.5.150:63860] script '/home/windcase/public_html/clarinet_triple_lightweight_cases.php' not found or unable to stat
[Mon Nov 04 09:05:24.153575 2013] [mpm_prefork:notice] [pid 6692] AH00171: Graceful restart requested, doing restart
[Mon Nov 04 09:05:25.063435 2013] [:notice] [pid 6692] mod_ruid2/0.9.4a enabled
PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/lib/php.ini on line 1147 in Unknown on line 0
[Mon Nov 04 09:05:25.078920 2013] [mpm_prefork:notice] [pid 6692] AH00163: Apache/2.4.6 (Unix) OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.4.17 configured -- resuming normal operations
[Mon Nov 04 09:05:25.078949 2013] [core:notice] [pid 6692] AH00094: Command line: '/usr/local/apache/bin/httpd -D SSL'
[Mon Nov 04 09:35:21.476844 2013] [mpm_prefork:emerg] [pid 19138] (13)Permission denied: AH00144: couldn't grab the accept mutex
[Mon Nov 04 09:35:21.480251 2013] [mpm_prefork:emerg] [pid 20107] (13)Permission denied: AH00144: couldn't grab the accept mutex
[Mon Nov 04 09:35:22.136877 2013] [core:alert] [pid 6692] AH00050: Child 19138 returned a Fatal error... Apache is exiting!
[Mon Nov 04 09:35:22.149464 2013] [mpm_prefork:emerg] [pid 19082] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Mon Nov 04 09:35:22.153216 2013] [mpm_prefork:emerg] [pid 20229] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Mon Nov 04 09:35:22.157597 2013] [mpm_prefork:emerg] [pid 18296] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Mon Nov 04 09:35:22.161407 2013] [mpm_prefork:emerg] [pid 20209] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Mon Nov 04 09:35:22.164979 2013] [mpm_prefork:emerg] [pid 20104] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Mon Nov 04 09:35:22.168086 2013] [mpm_prefork:emerg] [pid 19101] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Mon Nov 04 09:35:22.171117 2013] [mpm_prefork:emerg] [pid 19243] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Mon Nov 04 09:35:22.621741 2013] [mpm_prefork:emerg] [pid 20207] (22)Invalid argument: AH00146: couldn't release the accept mutex
[Mon Nov 04 09:39:17.059919 2013] [suexec:notice] [pid 21260] AH01232: suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Nov 04 09:39:17.060047 2013] [:notice] [pid 21260] ModSecurity for Apache/2.7.4 (http://www.modsecurity.org/) configured.
[Mon Nov 04 09:39:17.060064 2013] [:notice] [pid 21260] ModSecurity: APR compiled version="1.4.8"; loaded version="1.4.8"
[Mon Nov 04 09:39:17.060075 2013] [:notice] [pid 21260] ModSecurity: PCRE compiled version="8.21 "; loaded version="8.21 2011-12-12"
[Mon Nov 04 09:39:17.060085 2013] [:notice] [pid 21260] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Nov 04 09:39:17.060094 2013] [:notice] [pid 21260] ModSecurity: LIBXML compiled version="2.9.0"
[Mon Nov 04 09:39:18.030767 2013] [:notice] [pid 21261] mod_ruid2/0.9.4a enabled
Code:
AcceptMutex fcntl
Code:
Apache restart failed. Unable to load pid from pid file and no httpd process found in process list.
If apache restart reported success but it failed soon after, it may be caused by oddities with mod_ssl.
You should run /usr/local/cpanel/scripts/ssl_crt_status as part of your troubleshooting process. Pass it --help for more details.
Also be sure to examine apache's various log files.
Apache Restart Output:
Log:
[Mon Nov 04 09:39:17.059919 2013] [suexec:notice] [pid 21260] AH01232: suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Nov 04 09:39:17.060047 2013] [:notice] [pid 21260] ModSecurity for Apache/2.7.4 (http://www.modsecurity.org/) configured.
[Mon Nov 04 09:39:17.060064 2013] [:notice] [pid 21260] ModSecurity: APR compiled version="1.4.8"; loaded version="1.4.8"
[Mon Nov 04 09:39:17.060075 2013] [:notice] [pid 21260] ModSecurity: PCRE compiled version="8.21 "; loaded version="8.21 2011-12-12"
[Mon Nov 04 09:39:17.060085 2013] [:notice] [pid 21260] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Nov 04 09:39:17.060094 2013] [:notice] [pid 21260] ModSecurity: LIBXML compiled version="2.9.0"
[Mon Nov 04 09:39:18.030767 2013] [:notice] [pid 21261] mod_ruid2/0.9.4a enabled
PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/lib/php.ini on line 1147 in Unknown on line 0
[Mon Nov 04 09:39:18.063982 2013] [mpm_prefork:notice] [pid 21261] AH00163: Apache/2.4.6 (Unix) OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.4.17 configured -- resuming normal operations
[Mon Nov 04 09:39:18.064047 2013] [core:notice] [pid 21261] AH00094: Command line: '/usr/local/apache/bin/httpd -D SSL'
[Mon Nov 04 09:53:33.031505 2013] [mpm_prefork:notice] [pid 21261] AH00169: caught SIGTERM, shutting down
Code:
Mutex posixsem
Last edited: