httpd wont start

ARUN Post in HTTPD
0

[root@a24uall httpd]# service httpd start
Starting httpd: [Mon Jun 21 05:32:03 2010] [warn] module jk_module is already loaded, skipping
[Mon Jun 21 05:32:03 2010] [warn] module ssl_module is already loaded, skipping
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
[root@a24uall httpd]#

Solution :

[root@a24uall httpd]# for i in `ps auwx | grep -i nobody | awk {‘print $2′}`; do kill -9 $i; done

[root@a24uall httpd]# for i in `lsof -i :80 | grep http | awk {‘ print $2′}`; do kill -9 $i; done

Try restarting httpd

To check semaphores use :

ipcs -s

To clearout semaphores use the following :

[root@a24uall httpd]# for i in `ipcs -s | grep nobody | awk ‘{print $2}’`; do ipcrm -s $i; done

Try restarting apache again

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.