Transferring an installed site from localhost to a server

Moving an installed site from localhost to the server is done in the same way, as during the first installation, but with manual configuration of the configuration files.

To save time - do not download the "/system/cache" folder, but create the "/system/cache" folder itself and give it the 0777 rights recursively, as described in the article above (item 9). The site will fill it itself at the first launch.

After downloading the files to the server and setting up the rights, as described in the article above (item 9), you will need to install your mysql database and register access to it.

1. Using PhpMyAdmin or a similar panel, we export your local database with structure, data and keys.

2. Depending on the hosting, we import the database to the server (for example, Ukraine Hosting already has built-in PhpMyAdmin).

3. Via ftp in the file "/application/config/database.php" we change the parameters (where to get them, in the article above there are examples in points 5 and 6):

// Instead of xxxxxx we insert the data for connecting to the database
$db['default']['hostname'] = 'xxxxxxx';
$db['default']['username'] = 'xxxxxxx';
$db['default']['password'] = 'xxxxxxx';
$db['default']['database'] = 'xxxxxxx';

4. Via ftp in the file "/application/config/config.php" we look for the line $config['base_url'] and change the site domain to yours. Be careful what you specified when creating a site (http or https protocol, with www or without www). Specify as it was in the site settings on the local server, so that there is no endless redirect and error 503.

// An example of a correct domain entry, instead of https://root-i.work/ it should be yours
$config['base_url']  = 'https://root-i.work/';

5. When saving files, please note that your text editor must be able to save WITHOUT BOM (Byte order mark - byte order marker).

We are trying to launch the site at its real address. If you have any questions, we will always help you sort them out.