Relocate Joomla: This is how the server relocation works
If you choose a new web host, you'll also need to move Joomla. In this practical tip, we explain how you can transfer from the local computer or from server to server.
Move Joomla SQL database to new server
Before the move starts, you must have access to phpMyAdmin and the server via FTP for both your old and new web host:
- Log in to your previous host in phpMyAdmin.
- Select the Joomla database in the left bar.
- Click on the "Navigate" tab in the upper part of the window.
- Then select the "Fast" and "SQL" export types.
- If for some reason you cannot save the database as SQL, choose the zip format.
- Confirm your entries with "OK" and download the file to your computer.
- Now dial into phpMyAdmin on the new server.
- First create a new database there by clicking on the "Databases" tab and then assigning a database name.
- Write down the name for later and click on "Create".
- Navigate to "Import" and use the "Browse" button to select the downloaded database on your computer.
- If you have the database as a ZIP file, change the setting under "Format" from SQL to ZIP. Otherwise leave everything unchanged and click on "OK".
- If you have installed Joomla locally, the steps are the same. Only calling phpMyAdmin is different.
- Open your web browser and enter "// localhost / phpmyadmin" in the address bar.
Transfer data to server via FTP
Now log in to your previous host via FTP.
- Find the Joomla directory and download it completely to your computer.
- Then dial in to your new web host via FTP and load the directory onto its server.
- If Joomla is running locally on your computer with XAMPP, you will find the directory in the program path ".. \ xampp \ htdocs \".
- The folder now required has the name that you use to access your local website. For example, if you call up your Joomla with "// loclahost / webseite", the folder will be called "webseite".
- Use the FTP program to transfer this folder to the server.
Adjust Joomla configuration
In order for the connection between Joomla and the database to work, you have to adjust the "configuration.php" file manually. Always keep an original version of the file as a backup. If something goes wrong, you can use it again.
- Therefore, first rename this file, which you will find in the main Joomla directory on the server, to "configuration.php_original".
- Navigate back to your computer and open the file in the Joomla directory with the editor or notepad.
- Now change the following entries:
- public $ host = 'your host. This can be localhost or another server name. You can get this information from your web host.
- public $ user = 'Your username with which you log into the database'.
- public $ password = 'Your password with which you log into the database'.
- public $ db = 'Enter the name of the database you created. You had previously written this down.
- public $ dbprefix = 'Keep the table prefix unchanged'.
- Now you have to specify the new paths for the "log" and "tmp" folders. Enter "www.yourpage.com/joomlapath.php" into the browser. Here you can read and enter the paths.
- public $ log_path = 'Relative path to the log order. For example / server webhost / joomla / log. If you are unsure, ask your host. There you can be told the exact path '.
- public $ tmp_path = 'Relative path to the tmp order. For example / server webhost / joomla / tmpp. If you are unsure, ask your host. There you can be told the exact path '.
- Save the "configuration.php" and upload it to the web space.
- Now you can go to your page and test it.
- If you receive an error message, go through all the settings again and, above all, look for typing errors. A missing letter or punctuation mark can already make your website inaccessible.
- If you don't dare to change the information yourself, joom-config is a useful and free tool.
In the next article you will read how to install Joomla locally.