Semaphore error (semget)-Apache crash

The issue causes mainly due to insufficient disk space available for apache resources.

Fixes:
1. Check /etc/httpd/domlogs, if it is motre than 2GB that will cuase the issue; reduce the size and restart apache.
2. Check the error_log, access_log and other log files if anything is above 2B that will cause the issue; reduce the size and restart apache.
3. If the issue is due semaphore resources, then run the following script.

#!/bin/bash

ipcs -s | grep nobody | perl -e 'while () {
@a=split(/\s+/); print `ipcrm sem $a[1]`}'

{ copy the above lines into a file and run the file using sh
eg: sh filename}

Then restart apache and this will fix the issue.

Bobbin Zachariah 12:49 pm

About Bobbin Zachariah

Founder of LinOxide, passionate lover of Linux and technology writer. Started his career in Linux / Opensource from 2000. Love traveling, blogging and listening music. Reach Bobbin Zachariah about me page and google plus page.

Author Archive Page

Have anything to say?

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.