The site migration process can be divided into 5 main steps:
Create and get a backup copy of the site and database from another hoster
Unzip the files from the archive on our hosting
Import the site database
Configure the connection to the database in the site's config files
Redirect the domain from the old hosting to the new one
Creating a website on hosting:
Go to the control panel of your hosting cp.cityhost.ua and create a site with the same name as on another hosting - instructions .
Go to the file manager of the created site and download the archive with the site files that you received from another hoster - instructions .
Download and unpack the archive on the hosting in the root directory of the site, use the buttons in the upper right corner for this.
Make sure the site files are unzipped in the root directory of the site and not in a separate subfolder.
Import database:
Go to the MYSQL tab and create a new database with an arbitrary name, which you will associate with this site - instructions .
Open the created database in phpMyAdmin and import the database from the file you received from another host - instructions .
Configuring the config.php and /admin/config.php files:
Open the site's file manager again and click on the config.php file
Change the values of the db_database , db_username and db_password fields to those you have in the previous point when creating the database. This data is displayed on the MYSQL ? Users tab on your hosting.
Verify that the db_hostname field is set to localhost or 127.0.0.1. If you have a different value, set one of these two.
Change the value of the fields dir_application , dir_system and dir_image , here the absolute path to the files on the hosting is indicated. You can find out the path to your hosting on the Sites ? Root directory tab. Note that the path must be replaced while preserving the target directories to which this path leads.
Save the changes to the file by clicking the Save button in the lower right corner of the screen.
Repeat steps 2, 3, 4, 5 for the config.php file in the /admin directory.
Redirecting a domain from an old hosting to a new one:
If your domain is registered with our company , check that our NS servers are installed on it in the Domains - instructions section.
In the DNS section, direct your domain to the newly created hosting thanks to the button Send to hosting - instructions .
If the domain is NOT registered with our company , go to the domain registrar panel and install our NS servers there - instructions .
As in the case above, point the domain to the hosting by clicking the Point to hosting button in the DNS - instructions section.
This completes the site transfer, wait for the NS/DNS records to update, which may take 30 minutes to several hours, and try to open the site. If necessary, change hosting settings, such as PHP version or additional options , and issue a free SSL security certificate .