{"id":2433,"date":"2018-09-18T09:20:46","date_gmt":"2018-09-18T03:50:46","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=2433"},"modified":"2018-09-18T09:20:46","modified_gmt":"2018-09-18T03:50:46","slug":"cpanel-moodle-migration-to-bitnami-moodle-stack","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/cpanel-moodle-migration-to-bitnami-moodle-stack\/","title":{"rendered":"Cpanel Moodle migration to Bitnami moodle stack"},"content":{"rendered":"<h3>Cpanel Moodle migration to Bitnami moodle stack<\/h3>\n<p><strong>Date Posted: 17-09-2018<\/strong><\/p>\n<h3><strong>Cpanel Moodle :<\/strong><\/h3>\n<ol>\n<li>Take backup of moodledata and moodle files at cpanel server<\/li>\n<li>Take database dump of moodle instance using phpmyadmin or commandline<\/li>\n<li>Transfer files to new server<\/li>\n<\/ol>\n<h3>Bitnami Moodle Stack Server:<\/h3>\n<p>You can start generating backups for existing account at new server.<\/p>\n<h4>Backup Existing Data<\/h4>\n<p>Copy the following directories:-<\/p>\n<p><em><code>\/opt\/bitnami\/apps\/moodle\/htdocs\/<\/code><\/em><\/p>\n<p><em><code><\/code><\/em><em><code>\/opt\/bitnami\/apps\/moodle\/moodledata<\/code><\/em><\/p>\n<p>Stop Bitnami Service<\/p>\n<p><code>sudo \/opt\/bitnami\/ctlscript.sh stop<\/code><\/p>\n<p>Rename the current folder<\/p>\n<p><code>sudo mv \/opt\/bitnami \/opt\/bitnami.backup<\/code><\/p>\n<h4 id=\"step-2-copy-and-restore-data-on-the-new-instance\">Copy And Restore Data<\/h4>\n<p>Login to new server via SSH<\/p>\n<p>Stop Apache:<\/p>\n<p><code>sudo \/opt\/bitnami\/ctlscript.sh stop apache<\/code><\/p>\n<p>Delete the Moodle and Moodle data folder of this new instance:<\/p>\n<p><code>rm -rf \/opt\/bitnami\/apps\/moodle\/htdocs\/<\/code><\/p>\n<p><code>rm -rf \/opt\/bitnami\/apps\/moodle\/moodledata<\/code><\/p>\n<p>Restore the database to this server<\/p>\n<p><code>mysql -u root -p db_name &lt; db_name.sql<\/code><\/p>\n<p>Now restore\u00a0the Moodle (<em>\/opt\/bitnami\/apps\/moodle\/htdocs\/<\/em>) and Moodle data (\/opt\/bitnami\/apps\/moodle\/moodledata*) folder from the old installation into the new instance.<\/p>\n<p>Start apache:<\/p>\n<p><code>sudo \/opt\/bitnami\/ctlscript.sh start apache<\/code><\/p>\n<p>Your moodle migration is done !!!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cpanel Moodle migration to Bitnami moodle stack Date Posted: 17-09-2018 Cpanel Moodle : Take backup of moodledata and moodle files [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[413,412],"class_list":["post-2433","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-bitnami","tag-moodle","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-Df","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=2433"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2433\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=2433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=2433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=2433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}