Moving a Joomla installation directory to a new folder can be necessary for various reasons, such as improving security, changing the URL structure, or simply organizing your files. Here are the steps to move your Joomla installation to a new folder:
public $log_path = '/var/www/your-site/logs'; public $tmp_path = '/var/www/your-site/tmp';
Update the paths to reflect the new location of the logs and tmp folders. For example:
public $log_path = '/var/www/your-site/new-folder/logs'; public $tmp_path = '/var/www/your-site/new-folder/tmp';
Save the changes and close the file.
Update the database: Log in to your Joomla site’s backend and go to Global Configuration > Server. Update the “Path to Temp Folder” and “Path to Log Folder” fields to reflect the new paths.
Test your site: Visit your Joomla site to ensure that everything is working correctly. If you encounter any issues, review your steps to ensure that you haven’t missed anything.
That’s it! You’ve successfully moved your Joomla installation to a new folder.