Many users are interested in the question of how to transfer a site to another hosting running CMS Joomla. This process is very responsible and requires increased user attention. The procedure is divided into two very important steps: preparation for the transfer, file transfer and setup.
Preparing for transfer
The successful transfer of a joomla site to a hosting elsewhere largely depends on how well and correctly the preparation for this process was carried out. It is extremely important to correctly copy files from the hosting server to the computer. If the site is very large and consists of many files, then the copying procedure can take a very long time.
During copying, the user is not immune from network failures and loss of communication, which may affect the quality of the process. Files may not be copied correctly or completely. To improve the security and reliability of copying, it is recommended to carry out this procedure twice, save both versions of the files, and then compare them. If they are identical, thencopy was successful. Before moving a site to another hosting, it is very important to make this comparison. Many hosting providers in their control panels provide the ability to archive data. Then the files can be downloaded as an archive, which is much easier.
In addition to the files, you need to copy the database and Joomla CMS settings. Therefore, the next step will be to backup the data stored in MySQL, because it is with it that the CMS works. To do this, in the hosting control panel, you need to find the PhpMyAdmin section and export all Joomla tables from it to a gzip archive file.
File transfer and setup
Before transferring a domain to another hosting, it is very important to familiarize yourself with its rules and settings. You should check if the.htaccess and index.php files are there. When transferring data, they should be replaced with your own files. To manage the database, you need to find it in the PhpMyAdmin control panel and create a new database there or use the existing one if it already exists. It is necessary to import the previously created gzip archive into it. If tables appear after that, then the import was successful.
Before moving the site to another hosting, you need to change the Joomla configuration settings in the configuration.php file. To do this, open it with a notepad and change the settings to those that were issued when buying a new hosting. Most often, the changes concern the following lines:
- user login;
- password;
- base namedata;
- server address.
The new hoster must give the user new DNS server parameters, which should be entered in the registration panel. These steps must be performed in order to link the user's site to the new hosting.
Carefully and carefully, as the files were copied from the previous hosting, you need to upload them to the new server. It is best to check the connection status before transferring the site to another hosting, because breaks and failures during this procedure are unacceptable. If the settings of the new server allow, then you can download the files as an archive, and then unpack them already on the new site.
After a successful file transfer, you need to set write permissions in some folders. First of all, this concerns “/images/stories/” and “/cache/“. In addition to them, there may be other components on the user's site that require the definition of write permissions, for example, a photo gallery. Now you need to go to the site admin panel and try to log in. If it succeeded, then the site migration was successful.