The general steps required are as follows.
- Request a license change for your new stores url
- Backup your existing store files
- Backup your existing store database
- Transfer the files to the new server
- Import the database on the new server
- Change the config file to reflect the new database details and url
- Double check common problems when moving a site to a new server.
Request a license change for your new stores url
To request a license change, submit a support ticket via the client area at https://www.interspire.com/clientarea/. When submitting the support ticket make sure that the support type is set to "I need to change my license key" to ensure that the ticket goes to the right place in our system. We generally process license tickets once per business day so please allow for this delay in your timing for putting the site live.Backup your existing store files
You need to ftp into your web host where the shopping cart installation is done and download all the files from your store. When doing this you need to make sure that show hidden files is on in your ftp program because the .htaccess file which handles the search engine friendly urls is considered a hidden file because it's name starts with a dot.Backup your existing store database
Most web hosts will give you phpmyadmin access. Login to your phpmyadmin and select your database from the list on the left. Then click the "Export" tab in the page that loads on the right and make sure that "SQL" is selected under Export and then click Go. This should export your database and provide it as a download for you. If you have problems with the export timing out, you may have to ask your web host to export the file for you.Transfer the files to the new server
Using your ftp program, connect to your new server (or the live server) and upload the files that you downloaded in step 2. Be sure to make sure that show hidden files is on and that after the the upload is complete, that the .htaccess file is on the live server. Also make sure that you upload the files to the right directory on your live/new server as the name of the website root directory can vary between hosts. Normally it is something like html or httpdocs but if in doubt, double check with your web host.Import the database on the new server
Typically you will need to create a new database using your new/live web hosts control panel and then using phpmyadmin import the file you made in step 3. If you had to get your web host to export the file for you then you may need to get the web host to import it for you at this step.After importing the database, on many hosts you will need to create a new database user and give them access to the database you have just imported your data into. Your web host should have more details about how to do this with their specific control panel.
Change the config file to reflect the new database details and url
Now that your site is on the new server, it will probably have a new url and database settings. You will need to download a copy of the config/config.php file and then using a text editor like Editplus on windows or the built in textedit on a Mac, edit the downloaded copy of the config.php and change the following settings (the parts to change are on bold) :-$GLOBALS['ISC_CFG']["ShopPath"] = 'http://localhost/shoppingcart';
This should be the full path to your store
$GLOBALS['ISC_CFG']["AppPath"] = '/shoppingcart';
This should be the full root relative url to your store without a / on the end. If your store is your domains homepage then this should be empty (i.e. $GLOBALS['ISC_CFG']["AppPath"] = '';)
$GLOBALS['ISC_CFG']["dbServer"] = 'localhost';
The database host for your new/live database
$GLOBALS['ISC_CFG']["dbUser"] = 'shop_user';
The user to connect to your new/live database
$GLOBALS['ISC_CFG']["dbPass"] = 'shop_pass';
The password to connect to your new/live database
$GLOBALS['ISC_CFG']["dbDatabase"] = 'isc-trunk';
The name of your new/live database.
Once this is done, upload the new copy of config.php over the old one. The reason why we didn't edit the backup that we downloaded in step 2 was so we have a copy of the real one to compare against in case there are any problems with the changes you have made.
Double check common problems when moving a site to a new server.
There are a few things you are going to want to double check to ensure that your store functions correctly. These are as follows- Ensure that you can login to your control panel, if not then you may have the wrong database details in the config.php or the database may not have imported correctly.
- Once logged in, go to the store settings page and click save. You may have to adjust the permissions on the config directory, config/config.php and config/config.backup.php files if you see errors about file permissions when saving the settings.
- Enable the file permissions addon in the control panel and run it to check the file permissions for the rest of your store. This will make sure that cache files can be written, images can be uploaded etc.
- If you are using search engine friendly urls, go to a category and product page and make sure they display correctly. If they display an error page or your home page then you may need to edit your .htaccess file and enable the RewriteBase by removing the # at the start of the line and changing the / to the same value as your AppPath in step 6 with a / on the end.
- Do a test order to make sure the order process works correctly. Ensure that you get all the emails you are supposed to.
