Apache is not starting – semget: No space left on device

If Apache is not starting with the following log: [emerg] (28)No space left on device: Couldn’t create accept lock (/usr/local/apache/logs/accept.lock.18895) (5) OR semget: No space left on device It’s because the sempahore arrays in system memory is full. Check if there’re any processes in semaphore that are owned nobody in semaphores (or the user which apache is being run): # ipcs...

December 31st, 2009 by Akhthar Parvez 

PHP Fatal error: Allowed memory size exhausted

If you get the following error while running a PHP script Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in /home/abc/www/modules/project/mail.inc on line 243 It’s because the particular limit has exceeded the memory usage limit set in PHP configuration file. You can fix the issue by increasing the memory limit, if needed, by modifying the paramter...

December 22nd, 2009 by Akhthar Parvez