httpd server gone mad

Ed Greshko Ed.Greshko at greshko.com
Sun Jul 19 07:07:26 UTC 2009


Ed Greshko wrote:
> Hiisi wrote:
>   
>> Dear Fedora Folks!
>> Recently I was trying to install httpd local server on my FC11
>> machine. I need it for experiments with php/mySQL. First, I installed
>> all the necessary packages:
>> yum -y install httpd php mysql mysql-server php-mysql
>> /sbin/chkconfig httpd on
>> /sbin/chkconfig mysqld on
>> /sbin/service httpd start
>> /sbin/service mysqld start
>> /usr/bin/mysqladmin -u root password 'superbubersecretpassword'
>> It worked nice at the evening. I tested a few scripts like phpinfo();
>> and gone to sleep happily. Next day I begun to work on my project. I
>> hadn't change any configuration of the server when suddenly it stopped
>> to work. I recognized that when Firefox begun to display empty page,
>> not my page.
>> I tried 'service httpd start' but got the error:
>> Starting httpd: (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]
>> Then I run 'netstat -lnp | grep '0.0.0.0:80' ' to find out witch
>> process is using the address. To my surprise it was httpd itself! And
>> more over, there's a lot of httpd processes: ps aux | grep httpd
>> root      3099  0.0  1.7  28976  9016 ?        Ss   09:25   0:00
>> /usr/sbin/httpd
>> apache    3115  0.0  0.8  28896  4288 ?        S    09:26   0:00
>> /usr/sbin/httpd
>> apache    3116  0.0  1.1  29108  6112 ?        S    09:26   0:00
>> /usr/sbin/httpd
>> apache    3118  0.0  0.7  28976  4048 ?        S    09:26   0:00
>> /usr/sbin/httpd
>> apache    3119  0.0  0.7  28976  4048 ?        S    09:26   0:00
>> /usr/sbin/httpd
>> apache    3122  0.0  0.7  28976  4048 ?        S    09:26   0:00
>> /usr/sbin/httpd
>> apache    3123  0.0  0.7  28976  4048 ?        S    09:26   0:00
>> /usr/sbin/httpd
>> apache    3124  0.0  0.7  28976  4048 ?        S    09:26   0:00
>> /usr/sbin/httpd
>> apache    3125  0.0  0.7  28976  4048 ?        S    09:26   0:00
>> /usr/sbin/httpd
>> apache    3126  0.0  0.7  28976  4048 ?        S    09:26   0:00
>> /usr/sbin/httpd
>> root      3434  0.0  0.1   4200   696 pts/0    S+   09:54   0:00 grep
>> httpd
>> How can I cure my Apache? Any thoughts?
>> Respectfully
>> -- 
>> Hiisi.
>> Registered Linux User #487982. Be counted at: http://counter.li.org/
>>
>>     
> Your problem is not probably not httpd itself.  It is still running,
>   
"is probably not httpd"

(Note to self....don't do emails when distracted by quarreling cats...)
> which is why a "start" failed.  What you are seeing with the multiple
> httpd processes is normal.  Check your httpd.conf and you will see
> "StartServers" which controls the number of server processes started. 
>
> Check your logs to see what requests are being sent to it by your
> browser and what it is serving up.
>
> FWIW, if httpd wasn't running you wouldn't get a blank page.  You would
> get a "server not responding" indication in firefox.  You can see what
> you would get by stopping httpd, trying a firefox request, and then
> restarting.
>
>   


-- 
It's those computer people in X {city of world}. They keep stuffing
things up. Mei-Mei.Greshko at greshko.com
http://tw.youtube.com/watch?v=cCSz_koUhSg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20090719/5754d216/attachment-0001.bin 


More information about the users mailing list