Apache 2.4.7 goes down

paisley

Verified User
Joined
Aug 17, 2013
Messages
60
Hello,

I have a Directadmin server with Apache 2.4.7 without reason it goes down (maybe a bug)

Some logs:
[Wed Feb 19 08:16:48.801505 2014] [mpm_prefork:emerg] [pid 23327] (38)Function not implemented: AH00144: couldn't grab the accept mutex
[Wed Feb 19 08:16:49.179768 2014] [core:alert] [pid 30295] AH00050: Child 23327 returned a Fatal error... Apache is exiting!
[Wed Feb 19 08:16:55.660600 2014] [core:notice] [pid 30295] AH00060: seg fault or similar nasty error detected in the parent process

I not showing you double errors because they the same, anyone see what goes wrong ?

In php.ini:
zend_extension=/usr/local/lib/ioncube_loader_lin_5.4.so
zend_extension=/usr/local/lib/ZendGuardLoader.so
 
Last edited:
one reported solution is to add
AcceptMutex flock
to your main httpd.conf.
Other reports claim that doesn't work, and that the following does, so see which works best for you:
AcceptMutex posixsem

With apache 2.4, use Mutex instead of AcceptMutex

I have now add :
Mutex posixsem
In /etc/httpd/conf/httpd.conf and rebooted it.

Hope it is solved now.

Apache 2.2 to 2.4:
- Directives AcceptMutex, LockFile, RewriteLock, SSLMutex, SSLStaplingMutex, and WatchdogMutexPath have been replaced with a single Mutex directive. You will need to evaluate any use of these removed directives in your 2.2 configuration to determine if they can just be deleted or will need to be replaced using Mutex.

I think my upgrade had makes the problem ?
 
Did you do rewrite_confs and recompile of php and apache after upgrade to custombuild 2.0? If not you need to do that. Here is a quote from cb 2.0 faq at http://forum.directadmin.com/showthread.php?t=44743

Please check your options.conf file, set the settings you would like to have. The following steps are needed after upgrade of the CustomBuild script, if you would like to use apache:

./build apache
./build php n
./build rewrite_confs

So try this:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build apache
./build php n
./build rewrite_confs
 
I can't check my Apache version right now but I recently did a DirectAdmin update to get the latest software and now Apache gets slower and slower until it completely locks up my server; can no longer SSH.

I didn't do the step recommended by Ditto. Didn't know it was necessary.

Here is the process I used to update:

SSH into your server
Change directory to /usr/local/directadmin/custombuild T
ype: “./build update” to fetch a list of the available updates
Type “./build versions” to see a list of the available new updates with details on the versions you have of each package and the version available
Type “./build update_versions” to perform the update
 
Doing an update shouldn't cause a permanent slowdown in your server (your server may run more slowly than usual during an update). Check top to see if you're running high on swap space use or low on other resources, as newer versions could expect more memory than you've got. (Not likely, but possible.)

Jeff
 
Back
Top