Simple Backup and Restore of Joomla website

Simple Backup and Restore of Joomla website

Joomla is world most popular Content Management System. From a simple website to complex website it is most preferred choice of Web Designers and Web Developers across the globe.

Problem while switching host: – However there are sophisticated extensions are available to take proper backup of your entire Joomla website and ensure successful deployment of the site but those sophisticated extension are paid. Many web developers and designers prefer to shift Joomla files and Folder in a simple way via FTP.

Steps to take Backup of a Joomla Website-

  1. Ensure everything is working fine
  2. Login to Phpmyadmin
  3. Select concerned database and export in sql format
  4. Save exported database in your system Hardrive
  5. Login to ftp via your preferred FTP Client Program i.e. Filezilla
  6. Create a Local Backup name folder in your drive
  7. Select Entire Files and Folder of remote server and Drag into Local folder
  8. Wait till your files and folders successfully copied into your hardrive.

Steps to Restore a Joomla Website

  1. Login to Phpmyadmin
  2. And Import backup Database
  3. Login with correct FTP Details
  4. Goto right folder in which you have to copy your Joomla files
  5. Select Local Files and Folders and Drag to concerned remote server’s folder
  6. Open your copied Joomla’s configuration.php file in your preferred HTML/PHP Editor Program
  7. Look for database variables. <pre class="lang:php decode:true " >var $dbtype = ‘mysql’; var $host = ‘localhost’; var $user = ‘username’; var $db = ‘password’; var $dbprefix = ‘jos_’;</pre>

  8. Enter proper detail in your database type mysql is default selected, enter database host: default selected and then enter database credential like database username and database password.
  9. Once done look for variables. <pre class="theme:neon lang:php decode:true " >var $log_path = ‘/www/logs’; var $tmp_path = ‘/www/tmp’;</pre>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Ensure the right path for both logs and tmp folder if this path will be wrong the error and other logs could not be recorded which helps you to find the error and bugs in your Joomla site. And also due to wrong <tmp> you will face uploading issue. Hence you please don’t forget to configure it properly</li> 

  * Save and upload the file on remote server
  * Access your site via browser ie. [www.website.com](http://www.website.com/) and it will open properly without any hassle.
  * For the proper user friendly configuration of Joomla website once you able to access your Joomla site via browser ie. www.webstie.com/administrator  then you must go to control panel Properly configure your Joomla website i.e. emailing options and everything.</ol> 

**Joomla Unable to Connect to the Database: &#8211;** I highly recommend you must check your database connection. Check **Step 8** while restoring files to the remote server.

**Joomla File Uploading Issue:** You must check **step 8** and ensure proper path allocation the said variables.

**Joomla Email Issue:-** If you are facing Joomla email send issue then first you ensure the proper email sending detail in configuration.php the same file can be manage via Joomla Administrator too.  
Those variables are as:

<pre class="theme:solarized-dark lang:php decode:true " >var $mailer = 'mail'; var $mailfrom = 'rana.narender6@gmail.com'; var $fromname = 'project1'; var $sendmail = '/usr/sbin/sendmail'; var $smtpauth = '0'; var $smtpsecure = 'none'; var $smtpport = '25'; var $smtpuser = ''; var $smtppass = ''; var $smtphost = 'localhost';</pre>

Set properly everything and remember your smtp or php mail server must be rightly configured and should be in working state to send and receive email.

**For security reason don&#8217;t forget to assign 444 permission to Jooml&#8217;s configuration.php file located in its root.**

comments powered by Disqus