Joomla Tutorials and Blog Posts
Move a Joomla Site from Test Directory to Live

This tutorial will show you how to move a Joomla site from one directory to another using CPanel. One common reason for doing this is to move Joomla from a test folder and make it live. Joomla 1.5 makes this process very easy.

Login into your CPanel

tutuploadsmedia_1273177729964.png

Often you can access your CPanel just by adding /cpanel to your domain name ... example.com/cpanel

Access the File Manager

tutuploadsmedia_1273177795056.png

Although your screen may not look 100% identical to the one above, every version of Cpanel does come with a "File Manger" option somewhere.

Choose to Go to the Webroot

tutuploadsmedia_1273177848646.png

Open Your Test Folder

tutuploadsmedia_1273177958153.png

Select All the Files

tutuploadsmedia_1273177994215.png

Click on Move File

tutuploadsmedia_1273178045406.png

Move to /public_html/

tutuploadsmedia_1273178196171.png

Check Your Site

tutuploadsmedia_1273178304131.png

Visit the front of your site in its new location and verify that everything is working correctly.

Login to Your Joomla Site Administrator

tutuploadsmedia_1273178421982.png

Go to Site >> Global Configuration

tutuploadsmedia_1273178514353.png

Change Path to Log folder

tutuploadsmedia_1273178631118.png

Change that setting to remove your /test/ folder

Change Path to Temp-folder

tutuploadsmedia_1273178784889.png

Change that setting to remove your /test/ folder. Click "Save" in the top-right corner.


 

Comments  

 
#1 jackibar 2010-08-04 10:51
I would like to add that I had to do one more step to get everything working! When I moved my site to the new directory, everything looked right except clicking on any links within my site would give a "Not Found" error! I finally figured out that I had to change 1 setting in the .htacess file - the rewrite directory was still set to the old directory - changing this to the new one fixed all my links!
 
 
#2 kl6H_steve 2010-08-04 17:13
Good point, thanks jackibar.

Yes, if you have Search Engine Friendly URLs turned on, you may well need to modify the .htaccess file.
 
 
#3 JJ 2011-04-08 04:22
Thanks for the tip.
But how is this done ?

As i get the same 404 error.

But when comparing the old (backup 1.5) and new htaccess file they are quie different.
 
 
#4 iowawebco 2011-04-08 12:24
Hi JJ,

Give this a try (especially the troubleshooting parts in the bottom of the tutorial):
ostraining.com/.../...

Let me know in the support forum, www.ostraining.com/forum , if you still have trouble.

Kind regards,
Nick
 
 
#5 JJ 2011-04-08 14:30
Thanks for the link Nick.

I have done all the steps (i think - i.e. sef, file rename, access edit) and the mod-rewrite is working fine as in the example.

However i am :
(i) still getting a 404 error on the front end (root and index.php),
and
(ii) a token error on the administration login to the backend - which clears after a few attempts but re-occurs.

Started to wish i had never done the upgrade.

JJ
 
 
#6 JJ 2011-04-08 16:38
Hi Nick
Thanks for the tip, and i have tried the link and at least it shows the mod_rewrite works.

(i.e. change htaccess file name, sef setting changed/back, change htaccess file

However after the 'Jupgrade' the same problems seem to remain.

Problems are :

(i) 404 error on joomla root (frontend) : index.php

(ii) token error on backend/administration login (which is overidden after a few refreshes

Any further help greatly appreciated.


JJ

(Starting to wish i had never upgraded.)
 
 
#7 Spider 2011-12-05 22:49
Hi Nick/ Steve:
I am looking at moving my DEV site and making it the main site. The DEV site is a 1.7 Joomla! site and the one in public_html is a 1.5 site.
Does this make any difference in applying the advice in this tutorial... Will there be some compatibility issues?

I want to do this exchange but not confident this will work for 1.7 into a 1.5 install...

Tony
 
 
#8 iowawebco 2011-12-05 23:13
Hi Tony,

Everything should work fine if you follow the advice I gave you in the other discussion :)
ostraining.com/.../...

Make backups as a just in case :)

Kind regards,
Nick
 

Add comment