{"id":3228,"date":"2024-09-01T18:26:19","date_gmt":"2024-09-02T01:26:19","guid":{"rendered":"https:\/\/dhoytt.com\/mainblog\/?p=3228"},"modified":"2024-09-03T08:12:53","modified_gmt":"2024-09-03T15:12:53","slug":"migrated-web-site-to-new-server","status":"publish","type":"post","link":"http:\/\/dhoytt.com\/mainblog\/2024\/09\/migrated-web-site-to-new-server\/","title":{"rendered":"Migrated Web Site\u00a0To New Server"},"content":{"rendered":"\n<p>I was finally able to migrate my web server to another system and OS (Operating System) to better keep up with updates. I was on Fedora 34 Linux, and I moved the web server over to Rocky Linux 9.x. Fedora only goes 3 versions back for updates and their current version just moved to Fedora 40. Fedora is a bleeding edge Linux OS with a lot of the latest SW which can add further incompatibilities if developers have not had time to update their programs or utilities to use those libraries\\software. Fedora actually does a nice job of updating through the versions but that often leads to incompatible versions of PhP or other SW with applications such as WordPress plugins, the MySQL DB etc.&nbsp;<\/p>\n\n\n\n<p>Since I have my own XCP.ng virtual environment I cloned my webserver and worked on that offline after changing the Ip. Address on the system and in the MySQL database.&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>&nbsp;First, I did the clone then updated to current versions of Fedora this led to a list of issues.&nbsp;\n<ul class=\"wp-block-list\">\n<li>Apache redirects in http.conf and .htacecss were highly customized and did not work&nbsp;<\/li>\n\n\n\n<li>Had to sync with MySQL dB Ip. Address entries as well&nbsp;<\/li>\n\n\n\n<li>The PHP version mismatches were all over the place&nbsp;<\/li>\n\n\n\n<li>Had to disable or remove many plugins&nbsp;<\/li>\n\n\n\n<li>This normally reliable method left me with an unusable website.&nbsp;<\/li>\n\n\n\n<li>I tried this a few times since it had worked for me in the past.&nbsp;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Next, I created a new VM\/system with the same system specs using Rocky Linux 9.&nbsp;\n<ul class=\"wp-block-list\">\n<li>Started with a brand-new version of WordPress&nbsp;<\/li>\n\n\n\n<li>Setup WordPress networking multi-site&nbsp;<\/li>\n\n\n\n<li>Created each site the way I wanted with no data&nbsp;<\/li>\n\n\n\n<li>Installed WordPress plugins fresh if the plugins were maintained and updated.&nbsp;<\/li>\n\n\n\n<li>Found new WordPress plugins or did not install outdate non-maintained plugins.&nbsp;<\/li>\n\n\n\n<li>Installed the WordPress themes I wanted to use and checked they were updated and maintained.&nbsp;<\/li>\n\n\n\n<li>Did a copy of the website files using rsync.&nbsp;<\/li>\n\n\n\n<li>Used Heidi SQL to copy the MySQL DB\u2019s over to this new system&nbsp;<\/li>\n\n\n\n<li>Changed Ip. Addresses in DBs, Apache web server and web configuration files.&nbsp;<\/li>\n\n\n\n<li>This site started working I then decided to increase my website mountpoints size. &nbsp;\n<ul class=\"wp-block-list\">\n<li>Noticed it was under \u201c\/\u201d which is root of course and it is not contiguous due to swap.&nbsp;<\/li>\n\n\n\n<li>I have extended \u201c\/\u201d several times over the years but this time it just crashed the VM by not booting.&nbsp;<\/li>\n\n\n\n<li>I ended up restoring the VM (Virtual Machines) from a backup I do using the XCP-ng XOA (Xen Orchestra Appliance) source from GitHub.&nbsp;<\/li>\n\n\n\n<li>I did not want to have a large \u201c\/\u201d so I decided to split off the mountpoint to a new drive and copy data over which was just as problematic because I had some other system files in the mountpoint.&nbsp;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Since I decided I wanted more space on the website mountpoint I created a whole new VM with the drives sizes I wanted using Rocky Linux 9.x. Now I would be able to cleanly extend&nbsp;drives and mountpoint space if needed&nbsp;\n<ul class=\"wp-block-list\">\n<li>Initial install for some odd reason the system did not boot&nbsp;\n<ul class=\"wp-block-list\">\n<li>Figured it was how I ordered the mountpoints with the boot partition, swap but may have been how I formatted it. I was resizing and moving mountpoints around prior to the OS install probably chose the wrong formatting option without noticing.&nbsp;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Once I got the system to bootup properly on Rocky Linux 9 I installed updates, and the software packages needed to run a web server.&nbsp;<\/li>\n\n\n\n<li>Started with a brand-new version of WordPress&nbsp;\n<ul class=\"wp-block-list\">\n<li>Setup WordPress networking multi-site&nbsp;<\/li>\n\n\n\n<li>Created each site the way I wanted with no data&nbsp;<\/li>\n\n\n\n<li>Installed WordPress plugins fresh if they were maintained and updated.&nbsp;<\/li>\n\n\n\n<li>Found new WordPress plugins or did not install outdate non-maintained plugins.&nbsp;<\/li>\n\n\n\n<li>Installed the WordPress themes I wanted to use and checked they were updated and maintained.&nbsp;<\/li>\n\n\n\n<li>Imported the posts, comments and other data using WP-Import data from the original site to each multi-site.&nbsp;<\/li>\n\n\n\n<li>Created new menus\u2019 and exported them to the other sites using WPS Menu Exporter plugin.&nbsp;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Used Heidi SQL to copy the MySQL DB\u2019s over to this new system&nbsp;<\/li>\n\n\n\n<li>Did a copy of the website files using rsync.&nbsp;<\/li>\n\n\n\n<li>Used Heidi SQL to copy the MySQL DB\u2019s over to this new system&nbsp;<\/li>\n\n\n\n<li>Changed Ip. Address in DBs, Apache web server and web configuration files&nbsp;<\/li>\n\n\n\n<li>Moved over ssl certificates&nbsp;to the new web server<\/li>\n\n\n\n<li>Fine-tuned settings for performance and SEO.&nbsp;<\/li>\n<\/ol>\n\n\n\n<p>I still have a few things to accomplish but it&#8217;s comforting to get on Rocky Linux 9.x which is a long-term OS that will be around with updates for years instead of the bi-annual update cycle of Fedora that is only has. Just an FYI all places I have MySQL it&#8217;s the fork MariaDB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was finally able to migrate my web server to another system and OS (Operating System) to better keep up with updates. I was on Fedora 34 Linux, and I moved the web server over to Rocky Linux 9.x. Fedora &hellip; <a href=\"http:\/\/dhoytt.com\/mainblog\/2024\/09\/migrated-web-site-to-new-server\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5,6],"tags":[518,1262,1260,1265,1263,751,1266,150,305,1261,660,1264,283,570,505,713,789],"class_list":["post-3228","post","type-post","status-publish","format-standard","hentry","category-home-projects","category-whole-site-development","tag-apache-web-server","tag-backups","tag-fedora-linux","tag-github","tag-heidi-sql","tag-mariadb","tag-migrated-web-site-to-new-server","tag-mysql","tag-php","tag-rocky-linux-9-x","tag-rsync","tag-seo","tag-virtual-machine","tag-vm","tag-wordpress","tag-xcp-ng","tag-xoa"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/posts\/3228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/comments?post=3228"}],"version-history":[{"count":2,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/posts\/3228\/revisions"}],"predecessor-version":[{"id":3231,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/posts\/3228\/revisions\/3231"}],"wp:attachment":[{"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/media?parent=3228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/categories?post=3228"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dhoytt.com\/mainblog\/wp-json\/wp\/v2\/tags?post=3228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}