CityHost.UA
Help and support

Transferring the site to OpenCart

The site migration process can be divided into 5 main steps:

  1. Create and get a backup copy of the site and database from another hoster
  2. Unzip the files from the archive on our hosting
  3. Import the site database
  4. Configure the connection to the database in the site's config files
  5. Redirect the domain from the old hosting to the new one

Creating a website on hosting:

  1. Go to the control panel of your hosting cp.cityhost.ua and create a site with the same name as on another hosting - instructions .
  2. Go to the file manager of the created site and download the archive with the site files that you received from another hoster - instructions .
  3. 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.
  4. Make sure the site files are unzipped in the root directory of the site and not in a separate subfolder.

Import database:

  1. Go to the MYSQL tab and create a new database with an arbitrary name, which you will associate with this site - instructions .
  2. 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:

  1. Open the site's file manager again and click on the config.php file
  2. 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.
  3. 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.
  4. 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.
  5. Save the changes to the file by clicking the Save button in the lower right corner of the screen.
  6. 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:

  1. If your domain is registered with our company , check that our NS servers are installed on it in the Domains - instructions section.
  2. In the DNS section, direct your domain to the newly created hosting thanks to the button Send to hosting - instructions .

  1. If the domain is NOT registered with our company , go to the domain registrar panel and install our NS servers there - instructions .
  2. 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 .