Migrate CiviCRM to another server

#1 Backup and Restore Database and System Files
1. Backup all the script / all system files which is located on htdocs/ directory
2. Backup drupal and civicrm database
3. Restore database drupal and civicrm to another destination server.
4. Copy / move all the script / system files to destination server htdocs directory.


#2 Configuring Settings File
5. Configure the setting file in /parentdirectory/sites/default directory. There are 2 files : civicrm.settings.php and settings.php. Change the database and site url at those 2 files.

6. Delete all files and folder on template_c directory :
rm -r /opt/lampp/htdocs/yoursite/sites/default/files/civicrm/templates_c/*

#3 Copy Fresh Extension to Extension Directory
7. Delete all files and folder on extension directory
8. Copy desired extension to extension directory

#4 Changing Permission
9. Change permission of template_c directory :
chmod 777 /opt/lampp/htdocs/yoursite/sites/default/files/civicrm/templates_c/
chmod 777 /opt/lampp/htdocs/yoursite/sites/default/files/civicrm/templates_c/*

10. Change permission of upload directory :
chmod 777 /opt/lampp/htdocs/yoursite/sites/default/files/civicrm/upload/
chmod 777 /opt/lampp/htdocs/yoursite/sites/default/files/civicrm/upload/*

11. Change permission of contribute directory :
chmod 777 /opt/lampp/htdocs/yoursite/sites/default/files/civicrm/persist/contribute/
chmod 777 /opt/lampp/htdocs/yoursite/sites/default/files/civicrm/persist/contribute/*

12. Change permission of custom directory :
chmod 777 /opt/lampp/htdocs/yoursite/sites/default/files/civicrm/custom/
chmod 777 /opt/lampp/htdocs/yoursite/sites/default/files/civicrm/custom/*

13. Change permission of extension directory :
chmod 777 /opt/lampp/htdocs/yoursite/sites/extension/
chmod 777 /opt/lampp/htdocs/yoursite/sites/extension/*

#5 Configuring Directory on MRM
14. Go to administer -> System Settings -> Directories.
Change the Extension Directory field to : /opt/lampp/htdocs/yoursite/sites/extension
15. Go to administer -> System Settings -> Resource URLs.
Change the Extension Resource URL to : http://yoursiteurl/sites/extension

Comments

Popular posts from this blog

How to learn data structure effectively

How to resolve some issue while Installing Moodle Ubuntu 16.04 using Xampp

How to change phpmyadmin URL in Xampp Ubuntu and how to solve 'New Security Concept while accessing Phpmyadmin - Xampp' ?