Change Domain Name to an existing IP Address??

I currently have a domain name assigned to an IP address and it has a website, email and a MySql database. I would like to be able to change the Domain Name of this IP address but keep everything else intact. - Is there a way? :confused:

Thank You,
Clair

Option 1 - A quick way is to edit the vhost file for that domain manually then just restart HTTP server.

> cd /etc/httpd/conf.d
> vi domainname.com.conf

Then change the domain name for ServerName (most important) and anywhere else you see the old domain name.
Then do a apache restart, I like to do a graceful restart just in case there is a config problem.

> apachectl -k graceful 
or non-graceful
> service httpd restart

Option 2 - If you want to keep everything default Iworx way I think the best and cleanest way would be to just backup the account and create a new account and restore that. If this is on its own dedicated IP address then you will have to take the current site down before you create the new one and do the restore.

Maybe there is an easier way, so you should probably wait for more responses if you are not going to go with option 1.

[QUOTE=Justec;12957]

Option 2 - If you want to keep everything default Iworx way I think the best and cleanest way would be to just backup the account and create a new account and restore that. If this is on its own dedicated IP address then you will have to take the current site down before you create the new one and do the restore.

Maybe there is an easier way, so you should probably wait for more responses if you are not going to go with option 1.[/QUOTE]

I tried option 2 and made a new account, but I can not find a way to “Restore” the account because it says the backup is empty (since it’s a new account).

Any ideas?

You would need to make a backup of the current account first.

You could then move the file into the new websites iworx-backup folder (fastest way) or you could download it and then do a restore from local file and browse for wherever you downloaded it on your computer.

Yup initially get a backup of your account and then move all the content files to your new site … and you can later check your whois information from http://www.whoisxy.com and make sure with the ip address and other details of your domain name…

better to get help of moderator for the best solutions of it,