Move Joomla Site to a New Server

Embed Size (px)

Citation preview

  • 7/29/2019 Move Joomla Site to a New Server

    1/5

    Move Joomla Site to a New Server

    Tutorials

    While installing Joomla to your Ausweb hosting account canbe simply done using Fantastico Deluxe, there are someoccasions where you want to transfer an existing Joomla siteto your Ausweb hosting account. This may be because youalready have a Joomla site hosted elsewhere and are changing hosting providers or youhave a Joomla site that you have developed on a test server.

    The process involves 3 steps

    1. Upload your existing Joomla site files to your hosting account.2. Export (or dump) your existing MySQL database, then create a new database

    and import the data.3. Change your Joomla configuration settings.

    To view our Joomla demo site with a custom templateinstalled, please click on the thumbnail to the right. Thesite also includes other customizations made by ourdevelopment team including Simple Image Gallery,which is a great way to show off images and create

    photo galleries withing page content.

    Uploading Files

    There are 2 ways to go about uploading the files. You can use FTP to upload all theJoomla files to your hosting account, but as there are 1000's of files that make up aJoomla site, this can be a long tedious process.

    The better option is to compress all the files and folders into a .zip or .gz file, this filecan be uploaded to your hosting account and then unpacked/unziped/extracteddepending on the file format. Login to cPanel for you hosting account an go to FileManager.

    1. Upload the zipped file to your public_html (Main directory, subdirectory or

    subdomain) directory in File Manager, or use FTP (upload as binary).2. Click on the file name (not the icon this time) to select the file. A gz file

    http://tutorials.ausweb.com.au/web-hosting/joomla-faq/move-joomla-site-to-a-new-server.htmlhttp://tutorials.ausweb.com.au/web-hosting/web/tutorials/http://tutorials.ausweb.com.au/web-hosting/joomla-faq/move-joomla-site-to-a-new-server.htmlhttp://tutorials.ausweb.com.au/web-hosting/web/tutorials/
  • 7/29/2019 Move Joomla Site to a New Server

    2/5

    3. Look at the menu on the right side. Click the link which says Extract FileContents. Extracting/unzipping/unpacking

    4. All files are unpacked, unzipped and placed in the same relationship aspackaged. All folder names and contents the same.

    Now that all files and folders are uploaded we need to check that file and folderpermissions are correct. There are a number of folders that must be writable for Joomlato function. You can change folder and file permissions using either FTP or cPanel file

    manager.

    To change the permission of a file or folder in cPanel's File Manager

    1. Select the file or folder you wish to modify on the left.

    2. Click "Change Permission" link from the upper right corner.

    3. Set the options as shown below or type "755" then click "Change"

    The permissions need to be checked and changed, if necessary, to "755" for all

    folders listed below.

    administrator/backups/administrator/components/administrator/modules/

    administrator/templates/cache/

  • 7/29/2019 Move Joomla Site to a New Server

    3/5

    components/images/images/banners/images/stories/language/

    mambots/mambots/content/mambots/editors/mambots/editors-xtd/mambots/search/mambots/system/media/modules/templates/

    Create Database and Import Joomla Data

    You can view the tutorial covering database creation and data import here

    Modify Configuration File

    The last step is to modify your Joomla configuration.php file to suit your new hostingand database. Below is an example configuration file showing the changes that arerequired. You will need to edit the file configuration.php which is found in the maindirectory of your Joomla site. You can either modify the file on your PC using a texteditor, or modify the file in cPanel File Manager by selecting the file then clicking "EditFile" on the top right section of File Manager.

    $mosConfig_MetaAuthor = '1';$mosConfig_MetaDesc = 'Joomla - the dynamic portal engine and content managementsystem';$mosConfig_MetaKeys = 'Joomla, joomla';$mosConfig_MetaTitle = '1';$mosConfig_absolute_path = '/home/user/public_html/'; * Change this to suit yourserver path

    $mosConfig_admin_expired = '1';$mosConfig_allowUserRegistration = '1';

    $mosConfig_back_button = '1';$mosConfig_cachepath = '/home/user/public_html/cache'; * Change this to suit yourserver path

    $mosConfig_cachetime = '900';$mosConfig_caching = '0';$mosConfig_db = 'dbname'; * This is the name of the database created in theprevious step

    $mosConfig_dbprefix = 'jos_';$mosConfig_debug = '0';$mosConfig_dirperms = '';$mosConfig_editor = 'tinymce';

    $mosConfig_enable_log_items = '0';$mosConfig_enable_log_searches = '0';

    http://tutorials.ausweb.com.au/web-hosting/joomla-faq/exporting-and-importing-mysql-data-with-phpmyadmin.htmlhttp://tutorials.ausweb.com.au/web-hosting/joomla-faq/exporting-and-importing-mysql-data-with-phpmyadmin.html
  • 7/29/2019 Move Joomla Site to a New Server

    4/5

    $mosConfig_enable_stats = '0';$mosConfig_error_message = 'This site is temporarily unavailable.Please notify the System Administrator';$mosConfig_error_reporting = '-1';$mosConfig_favicon = 'favicon.ico';

    $mosConfig_fileperms = '';$mosConfig_fromname = '';$mosConfig_frontend_login = '1';$mosConfig_frontend_userparams = '1';$mosConfig_gzip = '0';$mosConfig_helpurl = 'http://help.joomla.org';$mosConfig_hideAuthor = '0';$mosConfig_hideCreateDate = '0';$mosConfig_hideEmail = '0';$mosConfig_hideModifyDate = '0';$mosConfig_hidePdf = '0';

    $mosConfig_hidePrint = '0';$mosConfig_hits = '1';$mosConfig_host = 'localhost';$mosConfig_icons = '1';$mosConfig_item_navigation = '1';$mosConfig_lang = 'english';$mosConfig_lifetime = '900';$mosConfig_link_titles = '0';$mosConfig_list_limit = '30';$mosConfig_live_site = 'http://yourdomain.com; * This is the URL of your Joomlasite

    $mosConfig_locale = 'en_GB';$mosConfig_mailer = 'mail';$mosConfig_mailfrom = '[email protected];$mosConfig_multilingual_support = '0';$mosConfig_multipage_toc = '1';$mosConfig_offline = '0';$mosConfig_offline_message = 'This site is down for maintenance.Please check back again soon.';$mosConfig_offset = '-10';$mosConfig_offset_user = '0';

    $mosConfig_pagetitles = '1';$mosConfig_password = 'password'; * This is the password for the database createdin the previous step

    $mosConfig_readmore = '1';$mosConfig_secret = 'qYwasdloRtdEwsa';$mosConfig_sef = '0';$mosConfig_sendmail = '/usr/sbin/sendmail';$mosConfig_session_life_admin = '1800';$mosConfig_session_type = '0';$mosConfig_shownoauth = '0';$mosConfig_sitename = 'My Joomla Site';

    $mosConfig_smtpauth = '0';$mosConfig_smtphost = 'localhost';

    mailto:'[email protected]:'[email protected]
  • 7/29/2019 Move Joomla Site to a New Server

    5/5

    $mosConfig_smtppass = '';$mosConfig_smtpuser = '';$mosConfig_uniquemail = '1';$mosConfig_user = 'dbuser'; * This is the database user created in the previous step$mosConfig_useractivation = '1';

    $mosConfig_vote = '0';setlocale (LC_TIME, $mosConfig_locale);?>

    Once you have saved and uploaded the file configuration.php you will now be able toaccess your new Joomla site.

    Joomla! is the perfect Content Management System for managing and developing yourwebsite with one of AUSWEB's cPanel Hosting

    http://ausweb.com.au/host1.htmlhttp://ausweb.com.au/host1.html