{"id":1199,"date":"2018-11-20T09:45:11","date_gmt":"2018-11-20T09:45:11","guid":{"rendered":"http:\/\/pcbjunkie.net\/?page_id=1199"},"modified":"2018-11-21T04:21:17","modified_gmt":"2018-11-21T04:21:17","slug":"restore-wordpress-from-duplicator-backup-on-vanilla-centos7-and-others","status":"publish","type":"page","link":"https:\/\/pcbjunkie.net\/index.php\/guides\/restore-wordpress-from-duplicator-backup-on-vanilla-centos7-and-others\/","title":{"rendered":"Restore WordPress from Duplicator Backup on Vanilla CentOS7 (and others)"},"content":{"rendered":"\n<p>I&#8217;m putting it here because&#8230; well, I feel like I&#8217;m a pro at doing this restore procedure given the constant data loss events at Cloud at Cost. <\/p>\n\n\n\n<p>Please, don&#8217;t use their services. I&#8217;ve already paid the money and don&#8217;t feel like paying again for a service I technically still have. I&#8217;m also cheap and too stubborn for my own good. This is what happens when you grow up poor and don&#8217;t value your time.<\/p>\n\n\n\n<p>Anyway&#8230; let&#8217;s get back to the topic.<\/p>\n\n\n\n<p>You have a fresh CentOS install and want to get your WordPress backup online in the fewest possible steps.<\/p>\n\n\n\n<p>Start installing the following packages. This assumes you are root.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum install net-tools<br>yum install httpd<br>yum install php<br>yum install mysql<br>yum install mariadb-server<br>yum install php-mysql<br><\/pre>\n\n\n\n<p>Edit http.conf and add PHP handling to Apache configuration (needed if running Duplicator installer from browser just shows source code).<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vi \/etc\/httpd\/conf\/httpd.conf&nbsp; <\/pre>\n\n\n\n<p>add the following lines to httpd.conf<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">AddType application\/x-httpd-php .php .htm .html<br>AddHandler x-httpd-php .php .htm .html<\/pre>\n\n\n\n<p>Start Apache (httpd) and DB (mariadb)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chkconfig httpd on<br>systemctl enable mariadb<br>systemctl start mariadb<\/pre>\n\n\n\n<p>Set mariadb password (if required). This can be done in two ways:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">set DB passwordmysql_secure_installation<\/pre>\n\n\n\n<p>&#8230; and follow the instructions from the script (recommended), or simply run the following and type the password when prompted.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysqladmin -u root password<br><\/pre>\n\n\n\n<p>Now, copy the installer and archive files to html root directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cp installer.php \/home\/pcbjunki\/public_html\/<br>cp &lt;date&gt;_&lt;sitename&gt;_archive.zip \/home\/pcbjunki\/public_html\/<\/pre>\n\n\n\n<p>Now, this may be necessary if trying to run the installer in browser, and it fails at the validation, or more specifically at the &#8220;permissions&#8221; stage.&nbsp;<\/p>\n\n\n\n<p>Edit SELinux config file to disable SELinux.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vi \/etc\/selinux\/config&nbsp; <\/pre>\n\n\n\n<p>and change the following setting to:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELINUX=disabled<\/pre>\n\n\n\n<p>You may need to reboot here. If the above change fails, permission \/ ownership change on html root directory may be required<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chmod a+x installer.php<br>chown -R apache:apache \/var\/www<br>chmod -R a+rwx \/var\/www<\/pre>\n\n\n\n<p>Finally, point your browser to http:\/\/&lt;sitename&gt;\/installer.php to run the Duplicator installer.<\/p>\n\n\n\n<p>Following successful install, go to worpress dashboard to remove the install files.<\/p>\n\n\n\n<p>Finally if you made permission changes in html root, reverse the change:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chmod -R o-w \/var\/www<br><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m putting it here because&#8230; well, I feel like I&#8217;m a pro at doing this restore procedure given the constant data loss events at Cloud at Cost. Please, don&#8217;t use their services. I&#8217;ve already paid the money and don&#8217;t feel like paying again for a service I technically still have. I&#8217;m also cheap and too &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/pcbjunkie.net\/index.php\/guides\/restore-wordpress-from-duplicator-backup-on-vanilla-centos7-and-others\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Restore WordPress from Duplicator Backup on Vanilla CentOS7 (and others)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":360,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1199","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pcbjunkie.net\/index.php\/wp-json\/wp\/v2\/pages\/1199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcbjunkie.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pcbjunkie.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pcbjunkie.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pcbjunkie.net\/index.php\/wp-json\/wp\/v2\/comments?post=1199"}],"version-history":[{"count":5,"href":"https:\/\/pcbjunkie.net\/index.php\/wp-json\/wp\/v2\/pages\/1199\/revisions"}],"predecessor-version":[{"id":1208,"href":"https:\/\/pcbjunkie.net\/index.php\/wp-json\/wp\/v2\/pages\/1199\/revisions\/1208"}],"up":[{"embeddable":true,"href":"https:\/\/pcbjunkie.net\/index.php\/wp-json\/wp\/v2\/pages\/360"}],"wp:attachment":[{"href":"https:\/\/pcbjunkie.net\/index.php\/wp-json\/wp\/v2\/media?parent=1199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}