Website migration in CMS Joomla

Migrating your website in CMS Joomla consists of moving the files, databases and updating configuration file.

Make a backup of your website

Firstly log in via FTP client to the server an copy all files and directories to your computer. Then go to phpMyAdmin application and create a backup of the database.

Upload the the website backup on the server with Active24

Log in to the WebAdmin and create a FTP account and database in the corresponding sections. Log in via FTP account to the server and upload the files and directories of the website backup.

Note: If the website is moved right after the order, the DNS records of the domain are not yet active. Use the IP of the server instead of ftp.yourdomain.tld. IP is located in the settings of your domain in WebAdmin in Web > FTP accounts > Login details (e.g. 195.210.29.YXZ or 37.9.168.XYZ)

Then log in to the database (address of phpMyAdmin is located in the Databases section) and upload the backup of your databases. Functionality of the website can be tested via link http://d.wbsprt.com/vašadoména.sk.

Update configuration file

Open the configuration.php file and update the login details:

 public $host = 'dbXY.websupport.sk';
 public $user = 'name';
 public $password = 'password';
 public $db = 'name of the database';


You can replace the variable $host fromdbXY.websupport.sk localhost, to localhost:PORT, localhost:/tmp-mysqlXY.sock alebo mysqlXY.websupport.sk:PORT. Change XY with the current version of the database and behind “:” its port. You can locate these information in the WebAdmin in the Database section.

If you have an active FTP layout on your website, update the FTP details:

public $ftp_host = ‘ftp.yourdomain.tld’;
public $ftp_user = ‘name’;
public $ftp_pass = ‘password’; 


Update the absolute paths to the temporary files directory:
public $log_path = ‘absolute-path/logs’;
public $tmp_path = ‘absolute-path/tmp’;
 

To get the absolute path you can use the feature getcwd():
<?php echo $p = getcwd(); ?>

Enter it to a new file called e.g. info.php, and enter it to the same directory where Joomla is. Then call it in the browser (www.yourdomain.tld/info.php).

Updated on September 11, 2024

Was this article helpful?

Related Articles