Added New IP Address - Site Showing Great Success Message

sm9

Active Member
Oct 10, 2009
35
0
56
Hi there,

I have a virtual server with a static IP address and I've been using it to host half a dozen or so of my websites.

I needed to install an SSL certificate for one of the websites but I needed the website to have a dedicated static IP address to do this, therefore, I asked my host for one and they have sorted this out for me.

To add the new IP address in WHM, I went to: WHM > IP Functions > Add a New IP Address. I typed in the new static IP address that the host emailed to me (I left the subnet mask as the default value, 255.255.255.0), then clicked Submit.

Then, to change the IP address the this particular website on the server was running, I went to: WHM > IP Functions > Change Site's IP Address. I then clicked on the domain in the list, clicked the Change button, then the new IP address was in the dropdown button, so I clicked the Change button again.

I then got the following message:

Changing ip for mywebsite.com (account_name) to xx.xxx.xxx.xxx

Setting up for ip change..... Done
Changed all instances of [xx.xx.xxx.xxx] -> [xx.xxx.xxx.xxx] in mywebsite.com
Updating httpd.conf....Done
Bind reload skipped on server_name (nameserver disabled)
System has 0 free ips.
Account modified. New ip is: xx.xxx.xxx.xxx.
I updated the A record for the domain name to the new IP address (as my domain uses the name servers of my domain host) about 36 hours ago but every time I navigate to the URL of this website, I jut get the "Great Success ! Apache is working on your cPanel® and WHM™ Server" message.

I've done a DNS lookup and propagation does seem to have taken place, so I think I must need to do something else to make the web server serve this particular website - can anyone help or advise me please?

Thanks,

Stephen
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hi,

Is the site you selected to use for the dedicated IP the main domain that your server's hostname is based off of? For example, if I have a domain happypanda.com on a server I've given the hostname bamboo.happypanda.com, this then means that bamboo.happypanda.com is technically a subdomain on this domain.

When I change the domain's IP for happypanda.com, Apache tries to change the default IP for the subdomain in httpd.conf to that IP as well, which then makes the site via the IP and domain show the main default server page.

Another way this could happen is if your entry ended up at the top of the VirtualHosts section where the default server page would normally be located.

Basically, no matter what, it normally is going to be something in httpd.conf that is the issue, so you would need to view /etc/httpd/conf/httpd.conf to see where the domain is appearing in it.

Thanks.
 

sm9

Active Member
Oct 10, 2009
35
0
56
Hi there,

I'm not that technical about this so please bear with me if I'm not understanding this right, but the server is a Virtual Server (i.e. not shared hosting) so when it was setup by the host, all I had was my login to WHM, i.e. the server itself is not in the name of any particular domain name.

Set add a domain name onto the server, I create a new Account in WHM, and this is when I enter domain names. I have about half a dozen cPanel accounts for the different websites.

This particular website also has its own cPanel account, and it is the main (and only) domain in that cPanel account.

I've just gone into httpd.conf and have found the following entry for this particular domain in it:

# DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.

NameVirtualHost xx.xxx.xxx.xxx:80
<VirtualHost xx.xxx.xxx.xxx:80>
ServerName mywebsite.com
ServerAlias www.mywebsite.com
DocumentRoot /home/account_name/public_html
ServerAdmin [email protected]
## User gwportal # Needed for Cpanel::ApacheConf
<IfModule mod_suphp.c>
suPHP_UserGroup account_name account_name
</IfModule>
<IfModule !mod_disable_suexec.c>
SuexecUserGroup account_name account_name
</IfModule>
CustomLog /usr/local/apache/domlogs/mywebsite.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
CustomLog /usr/local/apache/domlogs/mywebsite.com combined
ScriptAlias /cgi-bin/ /home/account_name/public_html/cgi-bin/
</VirtualHost>
For info, here's what an entry looks like for another domain/account on this server that is still using the original IP address and is working fine:

# DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.

<VirtualHost xx.xx.xxx.xxx:80>
ServerName anotherwebsite.com
ServerAlias www.anotherwebsite.com
DocumentRoot /home/account_name/public_html
ServerAdmin [email protected]
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/anotherwebsite.com combined
CustomLog /usr/local/apache/domlogs/anotherwebsite.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
## User account_name # Needed for Cpanel::ApacheConf
<IfModule !mod_disable_suexec.c>
SuexecUserGroup account_name account_name
</IfModule>
ScriptAlias /cgi-bin/ /home/account_name/public_html/cgi-bin/


# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2/account_name/anotherwebsite.com/*.conf"

</VirtualHost>
The domain I'm having problems with, since changing the IP address, is not the first in the list of VirtualHost's and appears about 2/3rds toward the bottom of the list. There are differences between the above two sets of code but the differences don't mean anything to me I'm afraid.

I can PM you the entire file if it helps, or can try anything else that is suggested.

Thanks,

Stephen
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hi Stephen,

Would you be able to open a ticket to us about it? That might be the easiest way for us to help you figure out what's happening without you having to provide personal details on the forum. You can go into WHM's Support Center, then click on the "Contact cPanel" link to open a ticket to our system.

Thanks.
 

sm9

Active Member
Oct 10, 2009
35
0
56
Hi there,

Just to follow up, I opened a ticket and the issue ended up being a hosting issue - the web host had added the new IP address to the wrong server!

It's now added to the right server, and the above process I followed originally now works fine.

Thanks,

Stephen