{"id":492,"date":"2020-05-01T14:04:21","date_gmt":"2020-05-01T18:04:21","guid":{"rendered":"https:\/\/www.unliterate.net\/?p=492"},"modified":"2020-05-01T14:05:09","modified_gmt":"2020-05-01T18:05:09","slug":"migration-from-c6-c8","status":"publish","type":"post","link":"https:\/\/www.unliterate.net\/index.php\/2020\/05\/01\/migration-from-c6-c8\/","title":{"rendered":"Migration from C6 -> C8"},"content":{"rendered":"\n<p>A long, long time ago I got myself a Centos 6 VPS. It&#8217;s been quite a long time, and with the maintenance period of Centos 6 coming up quickly in November 2020 I decided to go full bore into Centos 8.<\/p>\n\n\n\n<p>When performing the upgrade I keep a couple things in mind:<\/p>\n\n\n\n<!--more-->\n\n\n\n<ul class=\"wp-block-list\"><li>Make sure you took care of all DNS records a week ago to reduce the record time to 10 minutes from <a href=\"https:\/\/www.youtube.com\/watch?v=fC_q9KPczAg\">1 week.<\/a><\/li><li>Keeping configurations, and if I cannot then how to migrate them correctly<\/li><li>How to move files easily between hosts without nailing bandwidth caps<\/li><li>Making sure all sites that are moved can be tested<\/li><li>When to make DNS changes<\/li><\/ul>\n\n\n\n<p>I create myself a checklist of things to do with a new machine and run through it many times to make sure I minimize downtime:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Security: Check firewalld and selinux. Set selinux to permissive and reboot<\/li><li>get \/etc\/hosts set up with a mapping for &#8220;oldhost&#8221; since we&#8217;ll be changing DNS<\/li><li>Get EPEL and <a href=\"https:\/\/linuxize.com\/post\/how-to-install-php-on-centos-8\/\">PHP-remi<\/a> installed. I have to use remi since I use php-imap and that mod is not available in the Centos 8 PHP 7.2 release.<\/li><li>Get all my services in a list to copy\/paste install<\/li><li>Get all my users and home folders listed, passwords organized, and groups situated<\/li><li>Get all my core hosting folder and filestructures properly owned<\/li><li>Setup my sudo users<\/li><li>Configure dovecot for my local map server<\/li><li>Configure sendmail, make sure local-host-names and virtusertable are correct<\/li><li>Migrate all the mail from the old server to the new<\/li><li>Set up dns and reverse dns set up for mail domains to go to new server<\/li><li>Set up mariadb, then shut down MySQL on the old, rsync things over, and start up mariadb. Let mariadb complain, then be awesome and work.<\/li><li>Configure up Nginx, complain at some of the defaults that should be present in the conf files and comment them out. Copy over letsencrypt certificates.<\/li><li>Install apache, do some renaming, and set up new &lt;Directory&gt; rules. Konk out my php_value apache configs since PHP_FPM mode doesn&#8217;t use them. Complain a bit, but realize this is part of updating.<\/li><li>Finish migrating all DNS to the new host.<\/li><li>Start up all services, then set them all to start on boot in case the datacenter takes a crap.<\/li><\/ul>\n\n\n\n<p>Once all that is done, check and double-check. Copy old logs for mementos-sake, and relax.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A long, long time ago I got myself a Centos 6 VPS. It&#8217;s been quite a long time, and with the maintenance period of Centos 6 coming up quickly in November 2020 I decided to go full bore into Centos 8. When performing the upgrade I keep a couple things in mind:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-random"],"_links":{"self":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":3,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"predecessor-version":[{"id":495,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/492\/revisions\/495"}],"wp:attachment":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}