Uploading to a new server is done in the same way. The public html folder is responsible for the safe functioning of the domain and the safety of data, and all data should be collected in it. The cache, logs, and information about user visits will also be “dumped” here.
A large Internet resource usually has a lot of documentation of all kinds. For your own convenience, first archive all the data on the old server, and then easily unpack it in any new location.
This concerns those sites that use CMS. In most cases, MySQL databases are used there, therefore, they should also be transferred. This can be done manually, using the php MyAdmin panel. Or you can do it through the interface available in the hosting control panel.
MySQL migration is performed as follows: go to marketing list of plumbers the section with databases and select all the files that are there. Then, using the "Export" function, specify the path to save the selected data. Again, to speed up the process, you can archive everything beforehand.
Now, on the new hosting, click “Create a database” and enter the database name, login, password in the fields that appear, and click “Create”.
All that remains is to transfer the database to the new server. Click "Import", a window appears in which you need to specify the archive you just created and saved, and click "confirm". At the end, you need to supplement the site or CMS configuration file with database connection settings (this is described in the fifth point).
Step #4: Move email accounts.
An important point if you use mail often, and it is an integral tool of your work. The transfer procedure depends on how this channel is initially configured:
It will be most convenient to act if the domain name registrar includes an email address . Then you simply log into the registrar account and link the mail server to the IP address of the new hosting.
The mailbox is linked to a service acting as an intermediary . This could be, for example, MyOffice, Microsoft 365, Google G Suite. In this case, the e-mail service provider uses MX records, and it is necessary to check in DNS whether they are being updated.
Your email address is from your old hosting provider and is located on their server. In this case, you will need to go to the "Email" section on the new hosting, find the email import function there and repeat the account creation procedure.
Step #5: Updating data in CMS settings.
Open the folder with the engine system settings and find a file with the words conf, cjnfig, setting in its name. If you are dealing with WordPress, it will be "wp-config.php". Or, for example, on Joomla it is "configuration.php", and on Bitrix it is "dbconn.php".
Now you need to find the configuration file (in the previously archived data from the site) and open it through "notepad". Then enter new data in the Name, User, Password, Host lines, and paste the corrected file on the new server in the root of the web address of your resource.