The "failed to lock proc mutex" error in Apache's error log indicates a process locking issue, typically caused by the MPM (Multi-Processing Module) mutex configuration or filesystem permission problems.
Requires root access to fix
Shared hosting customers should open a ticket if they see this error affecting their site. This is a server-level configuration issue.
01. Common Fixes
# Check Apache's mutex configuration
grep -i mutex /etc/apache2/conf/httpd.conf
# Set mutex to use file-based locking (add to httpd.conf)
Mutex file:/run/apache2 default
# Or use sysvsem (System V semaphores)
Mutex sysvsem default
After changing the configuration, restart Apache: systemctl restart httpd
02. Other Causes
- Filesystem full - Check disk space with
df -h. If /run or /tmp is full, clear it. - Semaphore leak - Check with
ipcs -s. Clear stuck semaphores:ipcrm -s [semid] - SELinux - SELinux may be blocking mutex file creation. Check
audit.log.
Seeing This Error?
Open a Support TicketQuick Recap
- Check Apache mutex config in httpd.conf
- Try file-based or sysvsem mutex modes
- Check disk space on /run and /tmp
- Clear semaphore leaks with ipcrm
- Shared hosting: Contact support
Apache troubleshooting · Last updated March 2026 · Browse all Server Maintenance articles
