1. Introduction

We somtimes have customers who would like to keep the current website available for users but have another website prepared on a different server and using different technology. These customers usually don't want to purchase another domain name for the period of transition. What we do at Octopus Computer Solutions, is offer them to build the new website on a different subdomain. For example, they have www.example.com we then create newsite.example.com for the transition and development period.


When we finished work and the customer has approved us to migrate the new system onto the www domain we have the following command to help us. Plesk doesn't give you the ability to change the domain name you've configured unless you delete and create a new one.


2. Actual Steps

For this, i've found on linux machine that it's possible to 'migrate' (changing the domain name of) a website with 1 easy step.


Following is the command:


newsite.example.com - the new website we've developed on plesk

example.com - the old website's address we're moving to.


# /opt/psa/bin/domain -u newsite.example.com -new_name example.com


Now, it's not over yet. If you have different servers, you need to update your DNS configuration to withstand the new IP of the new server.

Also, there's a workaround to be made for PHP websites running on plesk.


You need to update your open_basedir configuration since the domain command doesn't.


Edit the following file:

# vi /var/www/vhosts/example.com/etc/php.ini 



open_basedir = "/var/www/vhosts/newsite.example.com/:/tmp/"



open_basedir = "/var/www/vhosts/example.com/:/tmp/"


You can restart your apache server if you'd like.



Viewed 6876 times.
Share |
How to migrate from o... (Daniel, 16:52 06/04/2013)
How to redirect SNMP ... (Daniel, 18:32 24/08/2012)
How to add httpd.conf... (Daniel, 19:20 24/03/2012)
How to avoid entering... (Daniel, 03:11 27/12/2011)
How to configure SOFT... (Daniel, 23:24 26/12/2011)
Subversion - Tortoise... (21:02 17/01/2010, 120990 views)
How to install Nagios... (01:08 23/12/2011, 51533 views)
How to avoid entering... (03:11 27/12/2011, 33584 views)
Byte Order Mark (BOM)... (17:36 22/02/2010, 31058 views)
How to install clamav... (21:13 24/10/2011, 25544 views)