Problem
Some time when you try to restart apache server you should see similar to the following error and apache server won’t start
Solution
After stopping apache server use the following command to check if your server is having httpd processes
netstat -ltnp | grep ‘:80’
If you have any httpd process on running you should see similar to the following out
tcp 0 0 :::80 :::* LISTEN 3945/gpasswd
Now you can kill this process using the following command
#kill -9 3945
3945 is process id
If you want to see more closely you can use ps -ef command to see any httpd running processes and kill all of them before restarting apache server process