Updating, recompiling, VirtualHost templates, customizations, php safemode …[emerg] (13)Permission denied: couldn’t grab the accept mutex
mutex, If you want the following error, or errors:
[Wed Nov 16 08:37:07 2011] [emerg] (13)Permission denied: couldn’t grab the accept mutex
[Wed Nov 16 08:37:08 2011] [alert] Child 5376 returned a Fatal error… Apache is exiting!
[Wed Nov 16 08:37:08 2011] [emerg] (43)Identifier removed: couldn’t grab the accept mutex
[Wed Nov 16 08:37:09 2011] [emerg] (22)Invalid argument: couldn’t release the accept mutex
[Wed Nov 16 08:37:11 2011] [emerg] (22)Invalid argument: couldn’t grab the accept mutex
one reporting solution is to add
to your main httpd.conf.
The Other reports claim that doesn’t work, and that the following does, so see which works best for you:
With apache 2.4, use Mutex instead of AcceptMutex
Please Note that when adding customizations to the main httpd.conf, you will need to use one of the two methods to prevent your settings from being lost.
I’m seeing a lot of localhost VHost entires on my server-status page
If you have enabled the server-status tool in apache, you may see many entries that looks like this:
37-0 – 0/0/9 . 0.00 24325 0 0.0 0.00 0.18 184.108.40.206 localhost NULL
39-0 – 0/0/8 . 0.00 24324 65 0.0 0.00 0.15 220.127.116.11 localhost NULL
40-0 – 0/0/15 . 0.00 24306 179 0.0 0.00 0.34 18.104.22.168 localhost NULL
41-0 – 0/0/110 . 1.10 23858 48 0.0 0.00 0.54 22.214.171.124 localhost NULL
Too Many new browsers will pre-connect to Apache. When a client browses your websites, it’s logical to assume that a client would click a link on that website. When that happens the browser needs to connect to your server again to make this new request.
The Newer browsers (such as Chrome) will pre-connect to a server.
After each client loads his first page, knowing that the client would likely click a link, the browser will connect to your server before the client has clicked anything.
For these cases, no request has yet been made for this … it is just an empty, idle connection without any communication over it yet (until a click happens).
Since the “Host” header has not yet been sent, Apache will not know which VirtualHost to send the request to, so it defaults to the very first VirtualHost on that IP, which in this case, is in /etc/httpd/conf/httpd-vhosts.conf, as it uses a ServerName of “localhost”, since nothing specific seems approriate. (it could also be in the /etc/httpd/conf/ips.conf for a shared IP)
How to check the details of a certificate request
If you just have a certificate request, and want to see what information is placed inside, you can use the “openssl” command with the “req” option to get you more info on the CSR.
[root@server]# openssl req -in /path/to/your/certificate.request -text -noout
Version: 0 (0x0)
Subject: C=CA, ST=Alberta, L=St. Albert, O=JBMC-Software, CN=www.testdomain.com/emailAddressemail@example.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (2048 bit)
Modulus (2048 bit):
Exponent is : 65537 (0x10001)
challengePassword :A challenge password
Signature Algorithm: md5WithRSAEncryption