Results 1 to 6 of 6
Hey everyone, I'm a long-time lurker of this site, but I decided to join today because I'm running into an issue I can't seem to figure out.
I have a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-23-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 3
Apache wont start
Hey everyone, I'm a long-time lurker of this site, but I decided to join today because I'm running into an issue I can't seem to figure out.
I have a VPS running CentOS, and I set up a website through it recently. Until yesterday it was working fine, but yesterday I rebooted the machine, and apache wouldn't start. This is what happened:
I've read some threads where people are having a similar issue, and I followed the steps that fixed it for them (changing ht-tpd.conf to listen on * :-80), but that still doesn't fix it. That part that's confusing me, is that the error pertains to port 20, and an ip address that is not related to my vps at all.Code:[***at***/]$ sudo service ht-tpd start [sudo] password for ***: Starting ht-tpd: (99)Cannot assign requested address: make_sock: could not bind to address 64.30.-224.112: 20 no listening sockets available, shutting down Unable to open logs [FAILED] [***at***/]$
Nowhere in ht-tpd.conf do I have any mention of that IP address, or port 20.
Is there some other conf file I need to look at?
Thanks much,
Damien
wont let me use at symbol =/
sorry for random dash symbols, wouldn't let me post otherwise. It thought I was linking.
- 10-23-2011 #2Just Joined!
- Join Date
- Oct 2011
- Posts
- 50
I believe you need to clean all semaphores:
try starting apache after thatCode:for i in `ipcs -s | awk '/httpd/ {print $2}'`; do (ipcrm -s $i); done
- 10-23-2011 #3Just Joined!
- Join Date
- Oct 2011
- Posts
- 3
- 10-24-2011 #4Just Joined!
- Join Date
- Oct 2011
- Posts
- 3
Sorry for the double post, just wanted to update with the solution I figured out. I looked through httpd.conf again, and found that it also loads conf files in /etc/httpd/conf.d
In that directory was ssl.conf, which was trying to listen to port 21 and 20, for reasons I couldn't figure out. I just commented out those lines and its working great now.
- 10-25-2011 #5Just Joined!
- Join Date
- Oct 2011
- Posts
- 22
Cat the output of
Code:$ sudo ps -aux| grep httpd $ kill -9 idprocess
- 10-25-2011 #6Just Joined!
- Join Date
- Oct 2011
- Posts
- 50
I wonder how those got there, glad that you were able to fix it


Reply With Quote

