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

 
jackibar
#1 jackibar 2010-08-04 15: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!
 
 
kl6H_steve
#2 kl6H_steve 2010-08-04 22:13

Good point, thanks jackibar.

Yes, if you have Search Engine Friendly URLs turned on, you may well need to modify the .htaccess file.
 
 
JJ
#3 JJ 2011-04-08 09: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.
 
 
Nick
#4 Nick 2011-04-08 17: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
 
 
JJ
#5 JJ 2011-04-08 19: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
 
 
JJ
#6 JJ 2011-04-08 21: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/adminis tration login (which is overidden after a few refreshes

Any further help greatly appreciated.


JJ

(Starting to wish i had never upgraded.)
 
 
Spider
#7 Spider 2011-12-06 03: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
 
 
Nick
#8 Nick 2011-12-06 04: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
 
 
Nawid
#9 Nawid 2012-01-23 12:05

Hi dear ,

I have a problem with setting up and editing of my joomla templates , when i am try to install the joomla template , the process in finishing successfully , but the template in live mode does not seems complete , its look like a test mode , it just have one link ( home ) button , resizing text options and etc , but not the main layout of the website ,!!!!

do you have any solution for this please ?
If yes kindly respond this message
 
 
Nick
#10 Nick 2012-01-23 20:43

Hi and welcome, Nawid!

Sounds like an interesting dilemma! We would love to get into a discussion with you on this. If you are a student at OSTraining.com, please log into the support forum (www.ostraining.com/.../) and post the question in there, so that one of our support techs can look into it for you. If you’re not a student, I hope you’ll consider becoming one, so that we can give you the attention you deserve. You can find out more about our online class at www.ostraining.com/online

Kind regards,
Nick
 
 
An
#11 An 2012-03-18 15:05

Just went through all of these steps to upgrade my 1.5 site to 2.5. Everything seemed fine until I got to the part where I log into my admin panel. I get this error:

Server error
The website encountered an error while retrieving anbacheler.com/.../index.php. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Not sure what to do now. Anyone have any suggestions??? I have one more site to upgrade and am now very hesitant till I can get this first attempt to work.

Would appreciate anyone who can provide me with easy steps to take (step by step like this tutorial).
Many thanks in advance.
 
 
Aditya Sharma
#12 Aditya Sharma 2012-05-31 17:54

I don't have a test folder anywhere in my web root
 
 
Spud Magoo
#13 Spud Magoo 2012-11-05 00:51

Thank you, this is just what i was looking for. Easy to follow, it worked great for me.
 
 
Ravi Bhadauria
#14 Ravi Bhadauria 2012-11-05 07:41

Thank you very much.
It saved my one day.
 

Add comment


Security code
Refresh

blog-ad

Start Online Training

Members get access to all our video training. That's 1,244 training sessions in Joomla, Drupal, WordPress and Coding.

Latest Comments

The License for Our Tutorials

All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:

  • You can re-use these tutorials.
  • You can modify these tutorials.
  • You must link back to our original tutorial.
  • You can't use these tutorials commercially.

Click here to read the full license.

Copyright 2013 Open Source Training, LLC. All rights reserved.