Upload Joomla from Local to Live Server – Part 1

Published by admin on

This is part 1 of the 10 Minute Joomla! Tips Screencast “Upload Joomla from Local to Live Server”

Moving Joomla from one server to another is a very valuable skill to have. It’s not just necessary to launch or deploy new web sites but it’s useful for many different reasons. For instance, creating a live site clone to troubleshoot a bug or creating a “staging” area for training an office staff.

In this 2 part Screencast Marco shows you how to upload a local Joomla website to a Cpanel Server step by step.
For even more help here is a checklist you can use while you are working on your first Joomla upload to your server:
Moving a Joomla Site from a Local Server to a Live server
NOTE: This checklist assumes you have Cpanel on the live server and you have used XAMP for your local server.
Locate the local folder where your site is (usually htdocs/yourfolder)
Open the folder and select your Joomla files
Use your ZIP program to create a ZIP file
Go to your Cpanel and click on “File Manager”
Navigate to your public_html folder
If necessary, create another folder where you’ll upload the ZIP file you just created. If the file is going live, you can expand directly in public_html
In Cpanel’s File manager Click on “Upload” and, from the new window, search for your zip file and click Upload
Once it’s done, go back to the file manager and click on “Reload” and you’ll see the zip file
Select the ZIP file and click on the “Expand” Icon – Your files should be now in the directory of your choice
Go to the Copanel DB manager and create a new database
Now create a new user and remember to assign it to the new database
Throughout this process, make sure to take some notes of the various names and passwords.
Go back to your local site and in XAMP open PhpMyAdmin. Click on the “Export” tab.
Locate your database and export it
Now, in Cpanel open PhpMyAdmin and click on the “Import”
Once again, locate the DB file you just exported and upload it
Now go to your file manager and select “configuration.php”. Click on “Edit” or “Code Editor” (or use the editor of your choice locally and upload the file)
Change these fields:

var $log_path = ‘D:\xampp\htdocs\localvm\logs’;
var $tmp_path = ‘D:\xampp\htdocs\localvm\tmp’;

to something like this:

var $log_path = ‘/home/youraccount/public_html/yourfolder/logs’;
var $tmp_path = ‘/home/youraccount/public_html/yourfolder/tmp’;

Then find these fields:

var $user = ‘root’;
var $password = ”;
var $db = ‘yourDB’;

and change them with your own data from the new Database and user you just created.

If you have a Virtuemart store, remember to change these entries:

define( ‘URL’, ‘D:\xampp\htdocs\localvm\’ );
define( ‘SECUREURL’, ‘D:\xampp\htdocs\localvm\’ );

to the ones relative to your own site.

Likes: 1

Viewed: 348


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: