Search: Advanced search |
Browse by category: |
| Errors and Solutions | |||||||||||||
Starting Apache
Sometimes Apache refuses to start. When this happens sweat instantly appears on your forehead because without apache running none of your website's are available. Here are some things you can try based on problems we've come across. Hitting the reset switch isn't the solution and not something you should do when you come across a problem like this. The correct way to start, stop or restart apache is by using the apachectl program. Such as:
Checking Apache configuration
Check the Apache error logs 1) ---------- Error ----------
no listening sockets available, shutting down ---------- Solution ----------
This will return results which look something like:
Where xxxx yyyy & zzzz are numbers for the process ID's. Now kill the processes with:
Apache will not start. Error log contains: 2) ---------- Error ----------
no listening sockets available, shutting down [emerg] (28)No space left on device: Couldn't create accept lock OR
Now, checking your disk shows that you have plenty of space. The problem is that apache didn't shut down properly, and it's left myriads of semaphore-arrays left, owned by my apache-user. Run: ---------- Solution ----------
Removing these semaphores immediately should solve the problem and allow apache to start:
|
|||||||||||||