Centos – Apache will not start after IP change

apache-2.2centos

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.*).

Best Answer

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