Difference between revisions of "Copying a Joomla website"

From Joomla! Documentation

(Marked this version for translation)
(14 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Copying a Joomla! website is a two-part process: you must copy the files and you must copy the database (which is where the content is stored).  Copying the files and copying the database are separate operations.  Which you carry out first will depend on your particular circumstances but in most cases it does not really matter.  If your website is being updated frequently and you need to take your website offline while the copy takes place then you will probably want to perform the database copy last so as to minimize downtime.
+
<noinclude><languages /></noinclude>
 +
{{version/tutor|2.5,3.x}}
 +
<translate><!--T:1-->
 +
Copying a Joomla! website is a two-part process: you must copy the files and you must copy the database (which is where the content is stored).  Copying the files and copying the database are separate operations.  Which you carry out first will depend on your particular circumstances but in most cases it does not really matter.  If your website is being updated frequently and you need to take your website offline while the copy takes place then you will probably want to perform the database copy last so as to minimize downtime.</translate>
  
 +
<translate>
 +
==Copying a website (common method)== <!--T:2-->
 +
</translate>
  
==Copying a website (common method)==
+
<translate>
 +
===Copying the files with FTP=== <!--T:3-->
 +
</translate>
 +
<translate><!--T:4-->
 +
One method of copying the files from one Joomla! installation to another is to use standard desktop FTP software to first download all of the files comprising your Web site from their location on your Web server, then upload these files to the location of the new Joomla! installation.  Depending on where you're placing the copy of your Joomla! site, the new location could be a different directory on the same Web server, or it could be a new location on a completely different Web server.</translate>
  
===Copying the files with FTP===
+
<translate><!--T:5-->
One method of copying the files from one Joomla! installation to another is to use standard desktop FTP software to first download all of the files comprising your Web site from their location on your Web server, then upload these files to the location of the new Joomla! installation.  Depending on where you're placing the copy of your Joomla! site, the new location could be a different directory on the same Web server, or it could be a new location on a completely different Web server.
+
It is important to maintain the same directory structure for all of your folders and files as you move them from one location to another. Fortunately, desktop FTP software will handle this automatically as you upload and download sets of files and folders.  (Your FTP software should contain Help documentation which explains FTP and how to use the FTP software interface).
 +
</translate>
 +
<translate><!--T:6-->
 +
Note that after you move the files from one location to another, you may still need to edit Joomla! configuration files to get your copy of Joomla! working at the new location; you may also need to change settings for aspects of your Web server to get the copy of your Joomla! site working.</translate>
  
It is important to maintain the same directory structure for all of your folders and files as you move them from one location to another. Fortunately, desktop FTP software will handle this automatically as you upload and download sets of files and folders.  (Your FTP software should contain Help documentation which explains FTP and how to use the FTP software interface.)
+
<translate><!--T:7-->
 +
In rare instances, a file may become corrupted during an FTP transfer, where only part of the file is successfully transmitted.  If you encounter strange or unexpected errors with your new Joomla! installation after you copy over the files, you may want to try re-uploading your files in case of corruption during transfer.</translate>
  
Note that after you move the files from one location to another, you may still need to edit Joomla! configuration files to get your copy of Joomla! working at the new location; you may also need to change settings for aspects of your Web server to get the copy of your Joomla! site working.
+
<translate>
 +
====Download files from server to your computer==== <!--T:8-->
 +
</translate>
  
In rare instances, a file may become corrupted during an FTP transfer, where only part of the file is successfully transmitted.  If you encounter strange or unexpected errors with your new Joomla! installation after you copy over the files, you may want to try re-uploading your files in case of corruption during transfer.
+
<translate><!--T:9-->
 +
# Use FTP software (e.g. FileZilla) to connect to the server</translate>
 +
<translate><!--T:10-->
 +
# Select the directory you want to download (mostly /public_html/ or /htdocs/)</translate>
 +
<translate><!--T:11-->
 +
# Right click + select files/folder to download, or drag + drop the folder from the "Remote site" view to the "Local site" view</translate>
 +
<translate><!--T:12-->
 +
# The downloading of the remote files will start</translate>
 +
<translate><!--T:13-->
 +
# After you've downloaded the files, check the "Failed transfers" to see if there weren't any errors</translate>
  
====Download files from server to your computer====
+
<translate>
 +
====Upload files from your computer to a server==== <!--T:14-->
 +
</translate>
 +
<translate><!--T:15-->
 +
# Make sure that configuration.php has the right settings for the server (especially: localhost, database, database user, database password, log_path, tmp_path)</translate>
 +
<translate><!--T:16-->
 +
# Use FTP software (e.g. FileZilla) to connect to the server</translate>
 +
<translate><!--T:17-->
 +
# Select the directory you want to upload, and to where (mostly to /public_html/ or /htdocs/)</translate>
 +
<translate><!--T:18-->
 +
# Right click + select files/folder to upload, or drag + drop the folder from the "Local site" view to the "Remote site" view</translate>
 +
<translate><!--T:19-->
 +
# The uploading of the local files to the remote server will start</translate>
 +
<translate><!--T:20-->
 +
# After you've uploaded the files, check the "Failed transfers" to see if there weren't any errors</translate>
  
# Use FTP software (e.g. FileZilla) to connect to the server
+
<translate>
# Select the directory you want to download (mostly /public_html/ or /htdocs/)
+
===Copying the database with phpMyAdmin=== <!--T:21-->
# Right click + select files/folder to download, or drag + drop the folder from the "Remote site" view to the "Local site" view
+
</translate>
# The downloading of the remote files will start
 
# After you've downloaded the files, check the "Failed transfers" to see if there weren't any errors
 
  
====Upload files from your computer to a server====
+
<translate><!--T:22-->
# Make sure that configuration.php has the right settings for the server (especially: localhost, database, database user, database password, log_path, tmp_path)
+
The phpMyAdmin tool can be used to export and import a database, providing a simple way to duplicate a copy of a database using a different name on our servers.</translate>
# Use FTP software (e.g. FileZilla) to connect to the server
 
# Select the directory you want to upload, and to where (mostly to /public_html/ or /htdocs/)
 
# Right click + select files/folder to upload, or drag + drop the folder from the "Local site" view to the "Remote site" view
 
# The uploading of the local files to the remote server will start
 
# After you've uploaded the files, check the "Failed transfers" to see if there weren't any errors
 
  
 +
<translate>
 +
====Exporting a copy of the database to your computer==== <!--T:23-->
 +
</translate>
  
===Copying the database with phpMyAdmin===
+
<translate><!--T:24-->
 +
# Login to the database that you want to duplicate using phpMyAdmin</translate>
 +
<translate><!--T:25-->
 +
# Click the database name on the left-hand side of the page.</translate>
 +
<translate><!--T:26-->
 +
# Select the Export tab</translate>
 +
<translate><!--T:27-->
 +
# Select the Save as file option</translate>
 +
<translate><!--T:28-->
 +
# Click Go</translate>
  
The phpMyAdmin tool can be used to export and import a database, providing a simple way to duplicate a copy of a database using a different name on our servers.
+
<translate><!--T:29-->
 +
You'll then be prompted to save the database file on your personal computer.</translate>
  
====Exporting a copy of the database to your computer====
+
<translate>
 +
====Importing the copy into a new database==== <!--T:30-->
 +
</translate>
  
# Login to the database that you want to duplicate using phpMyAdmin
+
<translate><!--T:31-->
# Click the database name on the left-hand side of the page.  
+
You'll first need to create the new, empty database on your server using the account control panel. It needs to be UTF8 (utf8_generic_ci). After the new database has been created:</translate>
# Select the Export tab
 
# Select the Save as file option
 
# Click Go
 
  
You'll then be prompted to save the database file on your personal computer.
+
<translate><!--T:32-->
 +
# Login to the new database using phpMyAdmin</translate>
 +
<translate><!--T:33-->
 +
# Click the database name on the left-hand side of the page</translate>
 +
<translate><!--T:34-->
 +
# Select the Import tab</translate>
 +
<translate><!--T:35-->
 +
# Click the Browse button under "File to import", then select the database file from your computer</translate>
 +
<translate><!--T:36-->
 +
# Click Go to import the database</translate>
  
====Importing the copy into a new database====
+
<translate><!--T:37-->
 +
:'''Hint:''' If you see a "No database selected" error, it's probably because you forgot to first click on the database name in the left-hand column.</translate>
  
You'll first need to create the new, empty database on your server using the account control panel. After the new database has been created:
+
<translate>
 +
===Changing configuration.php=== <!--T:38-->
 +
</translate>
 +
<translate><!--T:39-->
 +
In order to get Joomla to work on the new server, you should make the necessary changes in configuration.php to reflect the new server settings.</translate>
 +
<translate><!--T:40-->
 +
You should check/edit the following to</translate>
  
# Login to the new database using phpMyAdmin
 
# Click the database name on the left-hand side of the page
 
# Select the Import tab
 
# Click the Browse button under "File to import", then select the database file from your computer
 
# Click Go to import the database
 
 
:'''Hint:''' If you see a "No database selected" error, it's probably because you forgot to first click on the database name in the left-hand column.
 
 
===Changing configuration.php===
 
In order to get Joomla to work on the new server, you should make the necessary changes in configuration.php to reflect the new server settings.
 
You should check/edit the following to
 
 
<source lang="php">
 
<source lang="php">
 
var $host = 'localhost'; // usually "localhost". If it's different for your server then your hosting provider should be able to tell you that.
 
var $host = 'localhost'; // usually "localhost". If it's different for your server then your hosting provider should be able to tell you that.
Line 65: Line 114:
 
var $password = 'the_db_password';
 
var $password = 'the_db_password';
 
         var $live_site = ''; // is usually empty.
 
         var $live_site = ''; // is usually empty.
var $dbprefix = 'jos_'; // usually "jos_". Check the names of your Joomla database tables with phpMyAdmin. Do they start with "jos_"?
 
 
</source>
 
</source>
  
 +
<translate><!--T:41-->
 
Joomla will work, even if $log_path and $tmp_path are wrong, though you won't be able to install extensions.
 
Joomla will work, even if $log_path and $tmp_path are wrong, though you won't be able to install extensions.
Login into the back-end of your new Joomla site.  
+
Login into the back-end of your new Joomla site.</translate>
 +
 
 +
<translate><!--T:42-->
 +
In Joomla 2.5 go to: Site > System Information > Directory Permissions.</translate><br />
 +
<translate><!--T:43-->
 +
In Joomla 3 go to: System > System Information > Directory Permissions.</translate><br />
 +
<translate><!--T:44-->
 +
Look at the bottom 4 rows:</translate>
  
In Joomla 1.5 goto: Help > System Info > Directory Permissions. Look at the bottom 4 rows:
 
 
<source>
 
<source>
Cache Directory /var/www/example.com/cache/ Writable
+
cache (Cache Directory) Writable
Cache Directory /var/www/example.com/administrator/cache/ Writable
+
administrator/cache (Cache Directory)  Writable
Log Directory ($log_path) /var/www/some/other/folder/example.com/logs/ Unwritable
+
/var/www/some/other/folder/example.com/logs/ (Log directory) Unwritable
Temp Directory ($tmp_path) /var/www/some/other/folder/example.com/ Unwritable
+
/var/www/some/other/folder/example.com/tmp (Temp directory)  Unwritable
 
</source>
 
</source>
If the $log_path and $tmp_path are "Unwritable", you'll need to change the values in configuration.php.
 
  
Use the values of the "Cache Directory" without the "/cache/" part and change $log_path and $tmp_path to
+
<translate><!--T:45-->
 +
If the <tt>$log_path</tt> and <tt>$tmp_path</tt> are "Unwritable", you'll need to change the values in <tt>configuration.php</tt>.</translate>
 +
 
 +
<translate><!--T:46-->
 +
Use the values of the "Cache Directory" without the "/cache/" part and change <tt>$log_path</tt> and <tt>$tmp_path</tt> to</translate>
 +
 
 
<source lang="php">
 
<source lang="php">
 
   var $log_path = '/var/www/example.com/logs';
 
   var $log_path = '/var/www/example.com/logs';
 
   var $tmp_path = '/var/www/example.com/tmp';
 
   var $tmp_path = '/var/www/example.com/tmp';
 
</source>
 
</source>
If the Directory Permissions show that $log_path and $tmp_path are "Writable", then you should be able to install extensions.
 
  
==Copying a website using SSH command line (method for experienced users)==
+
<translate><!--T:47-->
 +
If the Directory Permissions show that <tt>$log_path</tt> and <tt>$tmp_path</tt> are "Writable", then you should be able to install extensions.</translate>
  
===Copying the files using a compressed archive file method===
+
<translate>
Copying a large number of individual files using FTP can sometimes be unreliable.  If you have command-line access to the both source and destination systems then you can create a compressed archive file containing all the files on the source system, then transfer that single file to the destination system where it can be decompressed.
+
==Copying a website using SSH command line (method for experienced users)== <!--T:48-->
 +
</translate>
 +
 
 +
<translate>
 +
===Copying the files using a compressed archive file method=== <!--T:49-->
 +
</translate>
 +
<translate><!--T:50-->
 +
Copying a large number of individual files using FTP can sometimes be unreliable.  If you have command-line access to the both source and destination systems then you can create a compressed archive file containing all the files on the source system, then transfer that single file to the destination system where it can be decompressed.</translate>
 +
 
 +
<translate>
 +
====Creating an archive file==== <!--T:51-->
 +
</translate>
 +
<translate><!--T:52-->
 +
On Unix-style systems (eg. Linux) you can use the '''gzip''' program to create .zip files, or the '''tar''' program to create .tar.gz or .tar.bz2 files.  For detailed instructions type '''man gzip''' or '''man tar''' at the command line.  For example,</translate>
  
====Creating an archive file====
 
On Unix-style systems (eg. Linux) you can use the '''gzip''' program to create .zip files, or the '''tar''' program to create .tar.gz or .tar.bz2 files.  For detailed instructions type '''man gzip''' or '''man tar''' at the command line.  For example,
 
 
<source lang="bash">
 
<source lang="bash">
 
tar cvfz joomlabackup.tar.gz /path-to-joomla
 
tar cvfz joomlabackup.tar.gz /path-to-joomla
 
</source>
 
</source>
will create a gzip-compressed archive file, called ''joomlabackup.tar.gz'', containing all of the files in your Joomla! installation.
 
  
'''Important note!''' You need to make sure you are NOT in the folder you are trying to backup when you run the tar command or you will create an endless loop.
+
<translate><!--T:53-->
 +
will create a gzip-compressed archive file, called ''joomlabackup.tar.gz'', containing all of the files in your Joomla! installation.</translate>
 +
 
 +
<translate><!--T:54-->
 +
'''Important note!''' You need to make sure you are NOT in the folder you are trying to backup when you run the tar command or you will create an endless loop.</translate>
 +
 
 +
<translate>
 +
====Extracting an archive file==== <!--T:55-->
 +
</translate>
 +
<translate><!--T:56-->
 +
Having copied the archive file to the destination system, you now need to unpack it.  Use the equivalent command that you used to create the archive file.  For example, to unpack the archive file created in the example above, enter</translate>
  
====Extracting an archive file====
 
Having copied the archive file to the destination system, you now need to unpack it.  Use the equivalent command that you used to create the archive file.  For example, to unpack the archive file created in the example above, enter
 
 
<source lang="bash">
 
<source lang="bash">
 
cd /path-to-joomla
 
cd /path-to-joomla
 
tar xvfz joomlabackup.tar.gz
 
tar xvfz joomlabackup.tar.gz
 
</source>
 
</source>
If the user or group IDs are not the same between the source and destination systems, then you will need to amend the ownership of the files you just extracted.  For example, on an Apache system, you might need to enter the command
+
 
 +
<translate><!--T:57-->
 +
If the user or group IDs are not the same between the source and destination systems, then you will need to amend the ownership of the files you just extracted.  For example, on an Apache system, you might need to enter the command</translate>
 +
 
 
<source lang="bash">
 
<source lang="bash">
 
cd /path-to-joomla
 
cd /path-to-joomla
chown -R www-group.www-user *
+
chown -R www-user:www-group *
 
</source>
 
</source>
 +
 +
<translate><!--T:58-->
 
so that Apache has ownership of the Joomla! files.
 
so that Apache has ownership of the Joomla! files.
:''Please ask your hosting provider for the correct group and user names, <tt>www-group</tt> and <tt>www-user</tt>, on your system.''
+
:''Please ask your hosting provider for the correct group and user names, <tt>www-group</tt> and <tt>www-user</tt>, on your system.''</translate>
  
 +
<translate>
 +
===Copying the database with MySQL command line method=== <!--T:59-->
 +
</translate>
  
===Copying the database with MySQL command line method===
+
<translate><!--T:60-->
 
+
Usually you run <tt>mysqldump</tt> to create a database copy:</translate>
Usually you run <tt>mysqldump</tt> to create a database copy:
 
 
  $ mysqldump -u user -p db-name > db-name.out
 
  $ mysqldump -u user -p db-name > db-name.out
  
Copy <var>db-name.out</var> file using sftp/ssh to remote MySQL server:
+
<translate><!--T:61-->
 +
Copy <var>db-name.out</var> file using sftp/ssh to remote MySQL server:</translate>
 
  $ scp db-name.out user@remote.box.com:/backup
 
  $ scp db-name.out user@remote.box.com:/backup
  
Restore database at remote server (login over ssh):
+
<translate><!--T:62-->
 +
Restore database at remote server (login over ssh):</translate>
 
  $ mysql -u user -p db-name < db-name.out
 
  $ mysql -u user -p db-name < db-name.out
  
 +
<translate>
 +
==Special Notes== <!--T:63-->
 +
</translate>
  
==Special Notes==
+
<translate><!--T:64-->
 
+
* Possible error with moving a local Joomla 1.7 to server: [[S:MyLanguage/Infinite loop detected in JError in Joomla 1.7|Infinite loop detected in JError in Joomla 1.7]]</translate>
* Possible error with moving a local Joomla 1.7 to server: [[Infinite loop detected in JError in Joomla 1.7]]
 
=== Tools ===
 
 
 
==== Akeeba ====
 
 
 
* Akeeba Backup produces a .jpa file
 
 
 
* The .jpa file contains all the folders/files and database files.
 
 
 
* The .jpa file also contains an installer
 
 
 
* Kickstart.php (from Akeeba) unpacks the .jpa file
 
 
 
* You then run the installer and install your site like a Joomla install.
 
 
 
* The installer has an option to change the configuration for restoring to a different location
 
 
 
After you create the Database for your Joomla download and install Akeeba, it can be download from [http://extensions.joomla.org/extensions/access-a-security/site-security/backup/1606 Joomla extension directory].  There is a link to full instructions there as well.
 
  
===GoDaddy.com Migrations===
+
<translate>
If using GoDaddy.com, different steps are required for import to be successful. In the Database section of the hosting control panel, find the database you wish to export and click the "edit details" icon (the little pencil). From there you will see a toolbar menu at the top with the option to Backup the database. Select that option and backup the SQL database to a _db_backups folder.
+
=== Tools === <!--T:65-->
 +
</translate>
  
To import, go to the new hosting panel (if still using Go Daddy)and navigate to the new database you are importing to, following the same steps for export. This time, click on Restore in the menu and select the previously backed up database. After a few minutes, your database will be as good as before.
+
<translate>
 +
==== Akeeba ==== <!--T:66-->
 +
</translate>
  
 +
<translate><!--T:67-->
 +
* Akeeba Backup produces a .jpa file</translate>
 +
<translate><!--T:68-->
 +
* The .jpa file contains all the folders/files and database files.</translate>
 +
<translate><!--T:69-->
 +
* The .jpa file also contains an installer</translate>
 +
<translate><!--T:70-->
 +
* Kickstart.php (from Akeeba) unpacks the .jpa file</translate>
 +
<translate><!--T:71-->
 +
* You then run the installer and install your site like a Joomla install.</translate>
 +
<translate><!--T:72-->
 +
* The installer changes the configuration for restoring to a different location and prompts for the new database details.</translate>
  
 +
<translate><!--T:73-->
 +
After you create the Database for your Joomla download and install Akeeba, it can be download from [http://extensions.joomla.org/extensions/access-a-security/site-security/backup/1606 Joomla extension directory].  There is a link to full instructions there as well.</translate>
  
[[Category:Tutorials]][[Category:Installation]]
+
<noinclude>
 +
<translate>
 +
<!--T:74-->
 +
[[Category:Tutorials]]
 +
[[Category:Installation]]
 +
[[Category:Update Working Group]]
 +
</translate>
 +
</noinclude>

Revision as of 08:24, 28 October 2015

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français

Copying a Joomla! website is a two-part process: you must copy the files and you must copy the database (which is where the content is stored). Copying the files and copying the database are separate operations. Which you carry out first will depend on your particular circumstances but in most cases it does not really matter. If your website is being updated frequently and you need to take your website offline while the copy takes place then you will probably want to perform the database copy last so as to minimize downtime.

Copying a website (common method)[edit]

Copying the files with FTP[edit]

One method of copying the files from one Joomla! installation to another is to use standard desktop FTP software to first download all of the files comprising your Web site from their location on your Web server, then upload these files to the location of the new Joomla! installation. Depending on where you're placing the copy of your Joomla! site, the new location could be a different directory on the same Web server, or it could be a new location on a completely different Web server.

It is important to maintain the same directory structure for all of your folders and files as you move them from one location to another. Fortunately, desktop FTP software will handle this automatically as you upload and download sets of files and folders. (Your FTP software should contain Help documentation which explains FTP and how to use the FTP software interface). Note that after you move the files from one location to another, you may still need to edit Joomla! configuration files to get your copy of Joomla! working at the new location; you may also need to change settings for aspects of your Web server to get the copy of your Joomla! site working.

In rare instances, a file may become corrupted during an FTP transfer, where only part of the file is successfully transmitted. If you encounter strange or unexpected errors with your new Joomla! installation after you copy over the files, you may want to try re-uploading your files in case of corruption during transfer.

Download files from server to your computer[edit]

  1. Use FTP software (e.g. FileZilla) to connect to the server
  2. Select the directory you want to download (mostly /public_html/ or /htdocs/)
  3. Right click + select files/folder to download, or drag + drop the folder from the "Remote site" view to the "Local site" view
  4. The downloading of the remote files will start
  5. After you've downloaded the files, check the "Failed transfers" to see if there weren't any errors

Upload files from your computer to a server[edit]

  1. Make sure that configuration.php has the right settings for the server (especially: localhost, database, database user, database password, log_path, tmp_path)
  2. Use FTP software (e.g. FileZilla) to connect to the server
  3. Select the directory you want to upload, and to where (mostly to /public_html/ or /htdocs/)
  4. Right click + select files/folder to upload, or drag + drop the folder from the "Local site" view to the "Remote site" view
  5. The uploading of the local files to the remote server will start
  6. After you've uploaded the files, check the "Failed transfers" to see if there weren't any errors

Copying the database with phpMyAdmin[edit]

The phpMyAdmin tool can be used to export and import a database, providing a simple way to duplicate a copy of a database using a different name on our servers.

Exporting a copy of the database to your computer[edit]

  1. Login to the database that you want to duplicate using phpMyAdmin
  2. Click the database name on the left-hand side of the page.
  3. Select the Export tab
  4. Select the Save as file option
  5. Click Go

You'll then be prompted to save the database file on your personal computer.

Importing the copy into a new database[edit]

You'll first need to create the new, empty database on your server using the account control panel. It needs to be UTF8 (utf8_generic_ci). After the new database has been created:

  1. Login to the new database using phpMyAdmin
  2. Click the database name on the left-hand side of the page
  3. Select the Import tab
  4. Click the Browse button under "File to import", then select the database file from your computer
  5. Click Go to import the database
Hint: If you see a "No database selected" error, it's probably because you forgot to first click on the database name in the left-hand column.

Changing configuration.php[edit]

In order to get Joomla to work on the new server, you should make the necessary changes in configuration.php to reflect the new server settings. You should check/edit the following to

	var $host = 'localhost'; // usually "localhost". If it's different for your server then your hosting provider should be able to tell you that.
	var $user = 'the_db_username';
	var $db = 'the_databasename';
	var $password = 'the_db_password';
        var $live_site = ''; // is usually empty.

Joomla will work, even if $log_path and $tmp_path are wrong, though you won't be able to install extensions. Login into the back-end of your new Joomla site.

In Joomla 2.5 go to: Site > System Information > Directory Permissions.
In Joomla 3 go to: System > System Information > Directory Permissions.
Look at the bottom 4 rows:

cache (Cache Directory) Writable
administrator/cache (Cache Directory)  Writable
/var/www/some/other/folder/example.com/logs/ (Log directory) Unwritable
/var/www/some/other/folder/example.com/tmp (Temp directory)  Unwritable

If the $log_path and $tmp_path are "Unwritable", you'll need to change the values in configuration.php.

Use the values of the "Cache Directory" without the "/cache/" part and change $log_path and $tmp_path to

   var $log_path = '/var/www/example.com/logs';
   var $tmp_path = '/var/www/example.com/tmp';

If the Directory Permissions show that $log_path and $tmp_path are "Writable", then you should be able to install extensions.

Copying a website using SSH command line (method for experienced users)[edit]

Copying the files using a compressed archive file method[edit]

Copying a large number of individual files using FTP can sometimes be unreliable. If you have command-line access to the both source and destination systems then you can create a compressed archive file containing all the files on the source system, then transfer that single file to the destination system where it can be decompressed.

Creating an archive file[edit]

On Unix-style systems (eg. Linux) you can use the gzip program to create .zip files, or the tar program to create .tar.gz or .tar.bz2 files. For detailed instructions type man gzip or man tar at the command line. For example,

tar cvfz joomlabackup.tar.gz /path-to-joomla

will create a gzip-compressed archive file, called joomlabackup.tar.gz, containing all of the files in your Joomla! installation.

Important note! You need to make sure you are NOT in the folder you are trying to backup when you run the tar command or you will create an endless loop.

Extracting an archive file[edit]

Having copied the archive file to the destination system, you now need to unpack it. Use the equivalent command that you used to create the archive file. For example, to unpack the archive file created in the example above, enter

cd /path-to-joomla
tar xvfz joomlabackup.tar.gz

If the user or group IDs are not the same between the source and destination systems, then you will need to amend the ownership of the files you just extracted. For example, on an Apache system, you might need to enter the command

cd /path-to-joomla
chown -R www-user:www-group *

so that Apache has ownership of the Joomla! files.

Please ask your hosting provider for the correct group and user names, www-group and www-user, on your system.

Copying the database with MySQL command line method[edit]

Usually you run mysqldump to create a database copy:

$ mysqldump -u user -p db-name > db-name.out

Copy db-name.out file using sftp/ssh to remote MySQL server:

$ scp db-name.out user@remote.box.com:/backup

Restore database at remote server (login over ssh):

$ mysql -u user -p db-name < db-name.out

Special Notes[edit]

Tools[edit]

Akeeba[edit]

  • Akeeba Backup produces a .jpa file
  • The .jpa file contains all the folders/files and database files.
  • The .jpa file also contains an installer
  • Kickstart.php (from Akeeba) unpacks the .jpa file
  • You then run the installer and install your site like a Joomla install.
  • The installer changes the configuration for restoring to a different location and prompts for the new database details.

After you create the Database for your Joomla download and install Akeeba, it can be download from Joomla extension directory. There is a link to full instructions there as well.