You are on page 1of 2

How to migrate my local Joomla installation to the Joomla installation on my hosting

account
First you should know that your Joomla application (portal) consists of two components: Joomla files and Joomla
database.
The files and folders of your Joomla application contain the scripts and core application code.
The Joomla database contains all records for your website such as your site sections, categories, articles, etc.
Lets assume that you are running your own !L"#$ or !%"#$ webser&er or you ha&e a web hosting account with
another company. 'ou should know the root directory where your Joomla installation resides. (t is often
called httpdocs, public)html or www. Those are the so*called web ser&er root directories. +o lets suppose that your
Joomla application in installed under your web ser&er root directory.

The first thing you ha&e to do when you want to transfer your Joomla applications to your +ite,round ser&er, is to copy
the entire content of your web ser&er root directory straight into the public)html folder of your +ite,round web
hosting account. -ote that if you would like the site to be a&ailable &ia a sub*directory.sub*domain for your primary
domain name it should be uploaded to the corresponding directory under public)html.

(f you are running your own ser&er probably you ha&e already had your Joomla site files on your hard dri&e. (n case you
are hosting your account on a remote machine, simply download your Joomla site files and directories (please mind that
you should keep the directory structure intact) on your desktop $/ by using your fa&orite FT$ client. ('ou can find
here how to backup your Joomla site.)

0nce the download is finished, you should connect to your +ite,round FT$ account, change your current working
directory to the public)html one (this is the root.main folder for your website) and drag and drop your Joomla files and
folders from your desktop $/ to your public)html folder.

The ne1t step is to create a full dump of your Joomla #y+2L database. (f you are running your own !%"#$ or !L"#$
ser&er probably you already ha&e the php#yadmin tool installed. (f you are using different web hosting pro&ider, they
should pro&ide you with access to a database management tool. 3ere we assume that you are managing your databases
with php#yadmin as it is the most popular tool for administrating #y+2L databases.

0nce you are logged in to your php#yadmin tool, backing up (e1porting) your database is simple. First choose your
database from the left menu. Then click the 41port tab. +elect all the tables, check "dd 560$ T"7L4and +a&e as file.
Lea&e all other options untouched. Finally click on ,o and the database dump will be downloaded to your $/. ('ou can
find here how to e1port your database.)

The ne1t step we should take is to import your database dump to your +ite,round account.

To do that you should go to your c$anel area and create a brand new database with a name of your choice. $lease mind
that you can create databases only from your c$anel area. 'ou cannot e1ecute /64"T4 database8 #y+2L statement
from the php#yadmin tool. 0nce you&e created your new database, please create a new database username and add it
to the database you ha&e created during the pre&ious step. For detailed instructions on #y+2L database creation you
can refer to the &ideo tutorial for creating #y+2L database and user in c$anel.

%e assume that you ha&e created your #y+2L database and the ne1t step is to go into your
+ite,roundphp#yadmin interface.

To restore (import) a database in php#y"dmin, first choose the database youll be restoring from the left menu. Then
click the (mport tab. 'ou ha&e the option of importing a .s9l file. :se the ;7rowse< button to find it on your pc and then
click ;,o< at the bottom.

(f you recei&e an error message which says access denied, you should open the database dump file you ha&e
downloaded on your desktop $/ with your fa&orite te1t editor and look for lines that may contain /64"T4 database
db)name8 and.or :+4 db)name8 mys9l statements. (f you find any simply delete them and try to re*import the dump. (f
you run into trouble our friendly technical support team is a&ailable =>.? and ready to help you.

3ere we go. The final step is to ad@ust the core settings which are defined in your main Joomla configuration.php file. ,o
to your +ite,round File #anager, change the current working directory to public)html and if you ha&e followed the steps
mentioned abo&e correctly you should be able to easily locate configuration.php file in there. 0pen it for editing.

7elow are the main &ariables you need to ad@ust so they can fit to your new +ite,round hosting en&iroment:
Amos/onfig)host B some.host.com8
Amos/onfig)user B some)db)user8
Amos/onfig)password B some)db)password8
Amos/onfig)db B some)db)user8
Amos/onfig)absolute)path B .path.to.your.@oomla.root.folder8
Amos/onfig)li&e)site B http:..url.to.your.@oomla.site.com8
Amos/onfig)cachepath B .path.to.your.@oomla.root.folder.cache8

41amples pro&ided abo&e are the core Joomla configuration &ariables you ha&e used with your desktop.home
L"#$.%"#$ ser&er or with your pre&ious host.

(n order to make your Joomla site run on your +ite,round account you should ad@ust them as follows:
Amos/onfig)host B localhost8
Amos/onfig)user B your+,username)mys9luser8
Amos/onfig)passwordBthe)password)you)ha&e)defined)during)the)mys9l)username)creation8
Amos/onfig)db B your+,username)mys9ldb8
Amos/onfig)absolute)path B .home.your+,username.public)html8
Amos/onfig)li&e)site B http:..your*siteground*domain.com8
Amos/onfig)cachepath B .home.your+,username.public)html.cache8

'ou should replace your+,username)mys9luser with the #y+2L username you ha&e created during the database setup
process mentioned abo&e. This also aplies for the password for this username and for the database name. 'ou should
also replace your+,username with the username you are using for your +ite,round c$anel area.
Amos/onfig)li&e)site is also essential and you should put the domain name you are using with your +ite,round hosting
account there.

(f you ha&e correctly followed the instructions mentioned abo&e and your domain name properly points to the 5-+
ser&ers of your +ite,round hosting account, you should be able to see your Joomla portal.

!%"#$ 3TT$ +er&er with %indows, "pache, #y+2L and $3$
!L"#$ 3TT$ +er&er with Linu1, "pache, #y+2L and $3$
For more information on how to manage your Joomla, you can &isit our Joomla tutorial.
-ote: The abo&e instructions are for Joomla C.D.!. (n order to migrate a local Joomla C.E please follow these
instructions.

(f you ha&e problems migrating your Joomla yourself, ask your host for assistance. +ite,round pro&ides the best Joomla
hosting and such re9uests are handled with ease.

You might also like