Actions

Difference between revisions of "Moving the site among directories/sub-directories"

From Joomla! Documentation

m (Changed notice into notice template. Also, if the user is still using version 1.0, he might have his reasons; this article is not meant to convince him to migrate.)
m (clean up categories with <noinclude> tags)
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
Many times you install Joomla in a sub-directory and then want to move it to a higher level directory, here's a short tutorial on how to do it.  
 
Many times you install Joomla in a sub-directory and then want to move it to a higher level directory, here's a short tutorial on how to do it.  
  
Say you have installed Joomla in the following folder
+
Say you have installed Joomla in the following folder: public_html/tryjoomla.
public_html/tryjoomla
+
Now that you are satisfied with the site, you'll want to move to public_html.
Now that you are satisfied with the site, you'll want to move to public_html
+
  
1. Move all the files from the sub-directory to the upper level directory, you can use your favourite FTP client or the panel that your hosting service provides to do this.
+
1. Move all the files from the sub-directory (i.e., public_html/tryjoomla) to the upper level directory (i.e., public_html). You can use your favourite FTP client or the control panel that your hosting service provides.
  
 
2. Download and open the configuration.php file in a text editor.
 
2. Download and open the configuration.php file in a text editor.
Line 17: Line 16:
 
var $live_site
 
var $live_site
 
</source>
 
</source>
The first two will definitely have a long value, the other two might not. The first line will most probably look something similar to
+
The first two will definitely have a long value; the other two might not. The first line will look similar to
 
<source lang="php">
 
<source lang="php">
 
var $log_path = '/home/username/public_html/tryjoomla/logs';
 
var $log_path = '/home/username/public_html/tryjoomla/logs';
 
</source>
 
</source>
You need to change this to
+
Change this to
 
<source lang="php">
 
<source lang="php">
 
var $log_path = '/home/username/public_html/logs';
 
var $log_path = '/home/username/public_html/logs';
Line 53: Line 52:
 
----
 
----
  
If you have cache enabled, you will need to login to the Control Panel (Which will now be at http://www.yoursite.com/administrator and not http://www.yoursite.com/tryjoomla/administrator), and go to Tools -> Clean Cache and delete all cache files.
+
If you have cache enabled, login to the administrator backend (which will now be at http://www.yoursite.com/administrator and not http://www.yoursite.com/tryjoomla/administrator). Go to Tools -> Clean Cache and delete all cache files.
 
+
<noinclude>[[Category:FAQ]]
 
+
[[Category:FAQ]]
+
 
[[Category:Administration FAQ]]
 
[[Category:Administration FAQ]]
 
[[Category:Installation FAQ]]
 
[[Category:Installation FAQ]]
[[Category:Version 1.5 FAQ]]
+
[[Category:Version 1.5 FAQ]]</noinclude>

Revision as of 16:12, 1 September 2012

Info non-talk.png
General Information

Please note that this item applies to Joomla version Joomla 1.5 only.

Many times you install Joomla in a sub-directory and then want to move it to a higher level directory, here's a short tutorial on how to do it.

Say you have installed Joomla in the following folder: public_html/tryjoomla. Now that you are satisfied with the site, you'll want to move to public_html.

1. Move all the files from the sub-directory (i.e., public_html/tryjoomla) to the upper level directory (i.e., public_html). You can use your favourite FTP client or the control panel that your hosting service provides.

2. Download and open the configuration.php file in a text editor.

3. Look for the following variables

var $log_path
var $tmp_path
var $ftp_root
var $live_site

The first two will definitely have a long value; the other two might not. The first line will look similar to

var $log_path = '/home/username/public_html/tryjoomla/logs';

Change this to

var $log_path = '/home/username/public_html/logs';

We've simply removed the tryjoomla folder name from the path. Similarly change the tmp path

var $tmp_path = '/home/username/public_html/tmp';

If you have the $live_site and $ftp_root variables with some values, they too need to give up the tryjoomla folder, so they can look something like

var $live_site = 'http://www.yoursite.com/tryjoomla';

becomes

var $live_site = 'http://www.yoursite.com';

AND

var $ftp_root = 'public_html/tryjoomla';

becomes

var $ftp_root = 'public_html';

If you have cache enabled, login to the administrator backend (which will now be at http://www.yoursite.com/administrator and not http://www.yoursite.com/tryjoomla/administrator). Go to Tools -> Clean Cache and delete all cache files.