Moving web hosts
General:
Have your web host set your TTL (Time To Live) to 0 on your old host, ASAP. The TTL tells other servers that visit your site (including GoTryTHIS links) that your server is going to be around for a while so they can cache (save and reuse) the DNS information to speed up response times. Setting it to 0 tells other server to check the DNS information every time because it is about to change when you move hosts. With it set to 0, when you move your web host, people will immediately find the new host instead of going to the old one. When you request the change, ask your host how long the TTL was set to, and then wait that length of time before changing your DNS.
If you do not set your TTL to 0, some people will go to the old server and some people will go to the new server, while the DNS change propagates around the Internet. This may result in lost click data on your GoTryTHIS links.
You can also ask your web host to set up DNS redirects to the new IP address for the new web host just before you switch the DNS.
Version 2, Hosted:
Moving the hosted version is easy, as there are no databases to contented with. Generally, you can just move your site and all will work.
- When you move the files, make sure to move the .htaccess folder and the /gotrythis/ folder you installed the GoTryTHIS domain code into, along with your other files. Use Binary mode to move the gotrythis folder.
- Change the DNS to point your site to the new server.
- Once the DNS is moved and propagated (usually takes 24 hours), check the “/gotrythis/data/clicks” folder on the old server. If there are files there, FTP them to the same folder on the new server.
Version 2, Installed:
Moving the installed version is somewhat more challenging than the hosted version. For clarity, in the instructions below, there is the “Dashboard” and each domain is a “slave”.
- If the dashboard is on the server being moved, backup the dashboard’s database, recreate it on the new server, and restore the data there.
- Move over all the files from the dashboard (if that is a domain being moved) and slaves from the old server to the new server as you move the site. Remember to check your .htaccess is moved too. Use binary mode to move the gotrythis folders. The dashboard is installed in /gotrythis2/ by default. The slaves are installed in /gotrythis/ by default.
- Update your DNS to point to the new server and wait until you see the new server instead of the old one. (Usually takes 24 hours.)
- If the dashboard is on the server being moving, login to https://billing.gotrythis.com and click the “Install” button for the version 2 dashboard, point it to the new location, choose the “Configure” option, and follow the instructions SetupBOT gives you.
- Login to the dashboard, go to the “Management” page, “Domains” tab, select the domain (slave) you moved, and click “Repair Domain”. Point SetupBOT to the slave you moved, choose the “Configure” option and follow the instructions in SetupBOT.
- Check each slave’s “/gotrythis/data/clicks” folder on the old server. If there are files there, FTP them to the same folder on the new domain.
- If you have other slave domains setup on the same dashboard, hosted on servers not being moved, they probably will be fine, but if not, repeat step 5 for each domain that is not working.
Version 1.x:
- Backup the GoTryTHIS database on the old server. Create a database for GoTryTHIS on the new server and restore the backup there.
- Move over all the files from the /gotrythis/ folder on the old server to the new server, as you move your site. Also move the .htaccess file.
- Update /gotrythis/application/application.php (or .conf, depending on your version) on the new server, to point to the new database.
- Update your DNS to point to the new server.
- If the application or links are not working, login to http://my.gotrythis.com with the “Dashboard Installer” button, click the “Install” button for GoTryTHIS 1, point it to the new server, and choose the “Repair” option, then the “Configure” option to reconfigure GoTryTHIS.
Please let us know how this works for you in the comments.
Thanks John, the hosted version steps worked great for me! I simply tar’d up the files and untar’d them on a new server.
[Reply]