Latest Register Log In

+ Advanced Search

Moving an Install

Moving an Install
By
Dec 10, 2004 (Edited Mar 10, 2014)

Moving to a New Web Server or Domain

Suppose you have WSN installed at site1.com and want to move it to site2.com:

  1. If you have a cookie path or cookie domain set at Admin Panel -> Settings -> System Configuration, set to a value that won't include the path/domain you're moving to, you'll need to update these before moving the site. If you forget to do that and find you can't login, you can use tweaks.php to reset the cookie path and domain.
  2. Download a database backup from the old server (though your favorite mechanism, be WSN's Admin Panel -> Maintenance -> Backups or phpmyadmin or cpanel) and then upload it to the new server.
  3. Move all the files (download from the old site, then upload to the new site, then delete the old).
  4. 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.
  5. WSN should automatically update its config.php to the new location when you visit the site at the new location. If the autodetection of the move fails somehow and you get errors after moving, modify your config.php to update the $dirurl and $uploadpath values, delete the .htaccess file (if present) and resubmit Admin -> Settings -> SEO to get a new one generated.

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:

  1. If you have a cookie path or cookie domain set at Admin Panel -> Settings -> System Configuration, set to a value that won't include the path/domain you're moving to, you'll need to update these before moving the site. If you forget to do that,
  2. Simply move the files in the filesystem (change the directory name... or download from the old location, then upload to the new location, then delete the old).
  3. WSN should automatically update its config.php to the new location when you visit the site at the new location. If the autodetection of the move fails somehow and you get errors after moving, modify your config.php to update the $dirurl and $uploadpath values, 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.

Creating a Copy

The easiest way to make a copy of your site on the same domain is to use Admin Panel -> Miscellaneous -> Clone Utility. If the copy needs to be on a different domain, you can follow the server move directions and simply omit the deletion of the old version.





Description Moving WSN from one directory to another or one site to another. Or, creating a copy of your install.
Rating
Views 2,771 views. Averaging 1 view per day.