Hi,
I am getting below error on the apache error log. Please help
Apache error: No space left on device: mod_rewrite: Parent could not create RewriteLock
semget: [emerg] (28) No space left on device OR Apache: No space left on device: Couldn’t create accept lock
Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file
Moderator: Staff
cPanel Server Management
@ 30$ Onwards
@ 30$ Onwards
Re: Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file
Hi,
You will have to kill the active semaphore processes in order to start Apache service successfully.
To list the PIDs of the active semaphore processes
ipcs -s
If seen more than one process you use this script to delete all semaphores
ipcs -s | grep nobody | awk '{print $2}' | xargs -n 1 ipcrm sem
Try to restart apache now.
You will have to kill the active semaphore processes in order to start Apache service successfully.
To list the PIDs of the active semaphore processes
ipcs -s
If seen more than one process you use this script to delete all semaphores
ipcs -s | grep nobody | awk '{print $2}' | xargs -n 1 ipcrm sem
Try to restart apache now.
Re: Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file
Hi,
The above tweak will fix the issue temporarily as it will re-occur when Semaphores get full.
To fix this permanently, you can increase the limit of Semaphore in the server.
Add the following lines in the file /etc/sysctl.conf
kernel.msgmni = 1024
kernel.sem = 250 256000 32 1024
Do you need professional help with this? Please open a support ticket to support@nixtree.com we'll fix it for you!
Brandon N
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree
The above tweak will fix the issue temporarily as it will re-occur when Semaphores get full.
To fix this permanently, you can increase the limit of Semaphore in the server.
Add the following lines in the file /etc/sysctl.conf
kernel.msgmni = 1024
kernel.sem = 250 256000 32 1024
Do you need professional help with this? Please open a support ticket to support@nixtree.com we'll fix it for you!
Brandon N
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree
Re: Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file
Hi Brandon,
That's Works!
Many thanks
That's Works!
Many thanks