WSN Knowledge Base
Moving an Install
Moving an Install
By Paul

Note: Creating a copy of an install is the same as moving it, except you don't delete the old version at the end.

Server Move

If you're moving to a whole new server, then you will need to follow these steps:
1) Download a database backup (though your favorite mechanism, be it the WSN backup mechanism or phpmyadmin or cpanel) and then upload it to the new host.
2) Move all the files (download from the old site, then upload to the new site, then delete the old).
3) If your database connection information is different on the new server, edit your config.php file to change your old database connection info to the new info that applies on your new host.
4) If the relative path from the domain base has changed, you'll need to delete the .htaccess file (if present) and resubmit Admin -> Settings -> SEO to get a new one generated.

In some cases that can't be autodetected, you may also need a 5th step:
4) Edit your config.php file to change the $dirurl (directory url) and file path to the attachments directory ($uploadpath) to the new locations.

Moving Within the Server

Suppose you have WSN installed on the base directory of your site, yoursite.com, and you want to move it to yoursite.com/directory.

For version 5.1.0 and later, simply move the files in the filesystem and the script will autodetect the new location as long as you delete the old location.

For 5.0 and earlier series, follow this process:
1) Go to your settings and change the directory url and upload path listed there to the new location. (Alternately you can modify your config.php to specify them.
2) Move all the files (download from the old directory, then upload to the new directory, then delete the old).
3) If the relative path from the domain base has changed, you'll need to delete the .htaccess file (if present) and resubmit Admin -> Settings -> SEO to get a new one generated.

Note that step 1 is important because if you don't change the url setting before moving you'll end up getting redirected to the old location when logging in to your admin panel. Also note that if your install is already in a subdirectory, you can skip the trouble of downloading and uploading by just renaming the directory to the new name you want.

Rating:


4/5 based on 3 votes. The median rating is 4.

Submitted: 12/10/04 (Edited 03/29/10)

Description: Moving WSN from one directory to another or one site to another. Or, creating a copy of your install.

Views: 1994 views. Averaging 1 views per day.
In the most recent 30 day period, there've been 0 views.

Previous Article | Next Article

Features Showcase Purchase Services Resources Support