Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running CentOS 5.8 and I had to change my server's IP address. Afterwards, I'm unable start Apache. I am also running virtualmin. The error I'm receiving is: Failed to start service

 Starting httpd: httpd: Could not reliably determine the server's fully qualified domain   name, using 184.106.146.125 for ServerName
 (99)      
 Cannot assign requested address: make_sock: could not bind to address 50.56.33.100:8080
 no listening sockets available, shutting down
 Unable to open logs

I edited my httpd.conf to point to the new IP address like such:

 #Listen 12.34.56.78:80
 Listen 184.106.146.125:80

And looking at the error it still seems to be referring to the old ip address (50.*).

share|improve this question
    
Have you tried using grep yet? –  Ignacio Vazquez-Abrams Apr 3 '12 at 0:33

1 Answer 1

up vote 3 down vote accepted

There's likely another configuration file that is referencing that IP address. You should use grep recursively to find this, for example:

grep -ir 50.56.33.100 /etc/httpd
share|improve this answer
    
Excellent i think it worked.. It now says: Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 184.106.146.125 for ServerName [ OK ] –  Doz Apr 3 '12 at 0:57
    
It was referenced in /etc/httpd/conf.d/ssl.conf:Listen 50.56.33.100:8080 –  Doz Apr 3 '12 at 0:59
1  
I think it's amusing that you put the case insensitive flag up for grep on a search that has only numbers and punctuation. :) –  Jeff Ferland Apr 3 '12 at 4:43
1  
It's funny, I never use -i, unless I'm doing -r, and then I always use it (even when it's not needed...). :-) –  Kyle Smith Apr 3 '12 at 10:22

Your Answer

 
discard

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.