How to Switch From One Web Host to Another?
If your old web hosting services use cPanel, the procedure to change web hosting services will be very easy. If this is not the case, to change web hosting services you will have to perform step-by step hand download and then upload, using tools for the change of web hosting services such as FTP.
Follow the next steps to change your web hosting services:
- First log onto your old cPanel at your current web hosting services provider and click “backup” (verify if you use x skin).
- When you are in the “backup” section, click on “download a home directory backup”. This way you will backup all your email accounts, files and other elements. This procedure will not do the backup of your MySQL database.
- If you have a MySQL database, you will have to independently download each one of them, choosing “Download a MySQL Database Backup”.
- If you have any Aliases/Filter Backups, take these too.
- And that’s it, you have backed up the entire site and now you can restore on the new website hosting services provider.
- Log on your cPanel at atecwebhosting.net and click “backup”.
- In “Restore a Home Backup” click on “Browse” and find “home backup” which you created/downloaded in the second step and then click “upload”.
- Repeat this procedure for every individual MySQL database.
- Repeat the procedure for your Aliases/Filters.
- Now your website has been restored/switched. You can repeat this procedure for all other websites that you want to transfer onto a new website hosting services provider.
Setting up the functionalities of your base after the restore
After you have performed the restore of your database, you will get an error message when you try to access the website that uses it.
Example of an error message:
Warning: mysql_connect(): Access denied for user: ‘[email protected]’ (Using password: YES) in /home/korisnik/public_html/catalog/includes/functions/database.php on line 19
Unable to connect to database server!
This error message says that your database now exists in the cPanel, but there is no username and password you have been given to it. To get a username and password, you must login to your cPanel and click “MySQL Databases”. Scroll down to Users. Your username will look like:
Your [email protected] Username in this example is “osc1”. Now you need to find your database password. To do that, check what it says in the “error” generated by the page and note the path.
Path in our error example:
Now you need to access your website through FTP and then go to the directory presented in the path. Transfer files on your computer, open it and check for the database password.
Example of what you should find: DB_SERVER_PASSWORD\’, \’ftMKfCC0vDTs\’);
Copy this password in the field “database password” and click “add user”.
The user is now added but he is still not added to the database. You will connect him with the database when you click “add user to database”. And that’s all for the process!
- First, login to your cPanel and click “backup” (make sure you are using x skin)
- Once in backup, click “download a home directory backup.” This will backup all of your email accounts, files, and a few other things. It will not backup your MySQL databases.
- If you have any MySQL databases, you will download them now.
- If you have any Aliases/Filter Backups, download them.
- Congratulations, you have backed up your entire site and its now time to restore it.
- Login to your cPanel with us, click “backup”
- Under “Restore a Home Backup,” click “Browse” and find the home backup you have already downloaded and click on upload.
- Do the same for your MySQL databases.
- Do the same for your Aliases/Filters.
- You are done with everything and your site has been restored. Now, repeat this process for any
Warning: mysql_connect(): Access denied for user: ‘[email protected]’ (Using password: YES) in /home/bakerpe/public_html/catalog/includes/functions/database.php on line 19
Unable to connect to database server!
What this means is that your database now exists in cPanel, but it has no username and password assigned to it. To assign a username and password, login to your cPanel and click “MySQL Databases.” Scroll down