Problem after changing server IP

piledriver852

New member
Joined
Dec 21, 2012
Messages
3
I've changed the IP of my VPS a few hours ago, the DNS has since been updated to the new IP. I ran through the instructions on http://help.directadmin.com/item.php?id=250 after changing the IP of my VPS. I'm pretty sure that the license has updated succesfully. But I ran into some issues. Mainly the httpd service doesn't want to start.

When I run 'service httpd start' I get this as a result:
Starting httpd: httpd: apr_sockaddr_info_get() failed for debordeauxspecialist.localdomain
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

And when I run 'service --status-all | grep httpd' I get this:
capi not installed - No such file or directory (2)
dnsdomainname: Unknown host
httpd is stopped
SIOCADDRT: File exists

I can't find anything on this issue anywhere and it goes quite far past my knowledge of directadmin and centos.

As additional info, I'm running on a CentOS 5.8 x64 VPS. I can reach the DirectAdmin config panel just fine and the new IP seems to be setup just fine there.

Any help is greatly appreciated!
 
Hello,

This might be the cause:
debordeauxspecialist.localdomain

We should try to find where that is, eg:
Code:
cd /etc/httpd/conf
grep [/COLOR][COLOR=#333333]debordeauxspecialist.localdomain *
[/COLOR][COLOR=#333333]grep [/COLOR][COLOR=#333333]debordeauxspecialist.localdomain */*
cd /usr/local/directadmin/data/users
grep [/COLOR][COLOR=#333333]grep [/COLOR][COLOR=#333333]debordeauxspecialist.localdomain */httpd.conf
It might be that the value doesn't resolve...
If that's your hostname, you might be able to just add the value into /etc/hosts with the server IP.

John
 
Woohoo! Everything is up and running again. Thank you!

I started with adding debordeauxspecialist.localdomain to /etc/hosts and after restarting httpd my websites worked again.

But that didn't seem the proper solution since that's not my hostname. I ended up adding the value ServerName to httpd.conf with my real hostname (which already existed in /etc/hosts)

It required a full reboot to also get dovecot up.
 
Back
Top