Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have changed the apache2 (httpd) on CentOS 6.4 listen port to 80, 443, 25640 etc no ports seem to work

(98)Address already in use: make_sock: could not bind to address
no listening sockets available, shutting down
Unable to open logs

I can't seem to find out what is taking the port though

when I start httpd webmin shows and if I kill that httpd starts successfully however no hosted sites load and with

service httpd restart

I get the same port failed to bind. Could apache start in two different places when I start it as webmin shows it as /usr/sbin/httpd?

share|improve this question
Did this problem start after you added the additional ports? That might indicate a SELinux permission problem. The shell command getenforce will tell you if SELinux is enabled. – Ulrich Schwarz Nov 16 '13 at 18:36
Ulrich Schwarz SELinux is disabled, the problem accrued after a user decided to install ALL apache modules from webmin... I removed all modules and reinstalled apache and php with yum reinstall httpd -y. – Mr_Galaxy_97 Nov 16 '13 at 19:02
ulrich-schwarz forgot to mention I am using the root user. – Mr_Galaxy_97 Nov 16 '13 at 19:25

if you have selinux disabled, are you sure the ports are not already used, use netstat to verify

share|improve this answer
Found the problem, some user on my system installed ALL the apache modules from webmin, they were taking port 80 as well. I fixed this with yum remove httpd then yum install httpd;yum install php – Mr_Galaxy_97 Nov 17 '13 at 16:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.