Manually running /scripts/rebuildhttpdconf required?
Hi guys,
Recently we moved our server to a different external IP address as we changed datacentres.
The server is on CentOS6.
I didnt move the server so I couldnt really comment on what was done at the time.
The issue I have is that new sites dont appear to bind to the IP address even though they claim to be when you try to reapply the IP address. What I have to do is add a generic IP address to the server move the site to that IP address and then move it back. After this I rebuild httpd conf and it all works fine.
We never had to do this before and Google seems to draw a blank.
I thing the issue may be that the server is using 1:1 NAT and somewhere in the IP address change something has been missed.
Has anyone else had this issue?
Tom
-
Hello, With NAT mode, try using "WHM >> IP Migration Wizard" to migrate to the new local IP address. Also, check to ensure the correct IP addresses are configured in the /var/cpanel/cpnat file. Thank you. 0 -
Hi Michael, The migration was many months ago and I believe that was what was done. The cpnat file is correct and can be modified from WHM root@cpanel-01 [/scripts]# cat /var/cpanel/cpnat 192.168.151.54 Interestingly I have to add a dummy IP address change the IP address of the site to that address and change it back. That in fact is what solves the issue. Here is the output of that procedure. Changing ip for user.co.uk (user) to 192.168.0.1 Setting up for ip change..... Done The remote dns zone is not consistent with the httpd.conf. The current ip in httpd.conf is: 192.168.151.54. The current ip in the dns zone is: ! will be switched to the new ip as well! Changed all instances of -> [192.168.0.1] in user.co.uk Updating httpd.conf....Done System has 1 free ip. Account modified. New ip is: 192.168.0.1. Changing ip for user.co.uk (user) to Setting up for ip change..... Done Changed all instances of [192.168.0.1] -> [] in user.co.uk Updating httpd.conf....Done System has 1 free ip. Account modified. New ip is: . 0 -
Hello, Feel free to open a support ticket using the link in my signature and we can take a closer look. Thank you. 0 -
Hi Michael, This is chargeable isnt it? Tom 0 -
Hi Tom, Support tickets are free of charge. There's only a cost if you choose to purchase priority status. Thank you. 0
Please sign in to leave a comment.
Comments
5 comments