2.14.2.13. Transfer Joomla!

To correctly transfer site running under the Joomla! CMS, it is usually sufficient to do the following:

  1. Transfer site files and database (if required) using instructions appropriate for your situation.
  2. Edit site configuration file configuration.php and make following changes to it:
    • For Joomla! versions that contain the line class JConfig in the configuration.php file:
      public $log_path = '/home/account_name/your_site.com/www/logs';
      public $tmp_path = '/home/account_name/your_site.com/www/tmp';
      public $ftp_enable = '0';
      public $host = 'host';
      public $user = 'login';
      public $db = 'database';
      public $password = 'password';
      public $live_site = 'http://www.your_site.com';
      public $sef_rewrite = '1';

      Where:

    • For Joomla! versions that do not contain the line class JConfig in the configuration.php file:
      var $logs = '/home/account_name/your_site.com/www/logs';
      var $tmp = '/home/account_name/your_site.com/www/tmp';
      var $ftp_enable = '0';
      var $host = 'host';
      var $user = 'login';
      var $db = 'database';
      var $password = 'password';
      var $live_site = 'http://www.your_site.com';
      var $sef_rewrite = '1';

      Where:

      • account_namehosting account name where the website is hosted.
      • your_site.com is the name of your site (domain).
      • host, login, database and database are taken from the connection data for database.
  3. Delete the cache/page directory with all its contents.
  4. Rename htaccess.txt file to .htaccess.
  5. In .htaccess file, replace FollowSymLinks directive with SymLinksIfOwnerMatch.
Content