There are several reasons you may want to change your hosting company. Perhaps your old one has downtime, not enough space, or is closing. Regardless of your reasons, moving your website doesn't have to be a scary experience.
More PHP / MySQL Quick Tips
- Download everything from your current host, including making a backup of databases
- Upload everything to your new site. Most hosts allow you to upload via the IP address before you change your DNS. If you don't want downtime, try to get this done before you old hosting is gone and your DNS is changed.
- After you re-setup your databases, you need to change the files that point to it. In many PHP scripts this is all held in a configuration file, often called config.php
- Once everything is uploaded and setup, it is time to change your DNS. This can take up to three days to take effect. Often times over the next couple days it will seem to switch on and off the new hosting, before finally settling there for good.
- Test everything on your site. Occasionally you will have issues if the new host has a different version of PHP or MySQL than your old host. If this is the case you may have to alter your code slightly, but usually you should experience no problems.
- Cancel your old hosting, you are officially moved!

