{"id":1330,"date":"2026-06-12T20:52:47","date_gmt":"2026-06-12T20:52:47","guid":{"rendered":"https:\/\/johnnycarlos.com\/?p=1330"},"modified":"2026-06-13T03:15:45","modified_gmt":"2026-06-13T03:15:45","slug":"upgrading-ubuntu-22-04-to-24-04-while-running-a-live-wordpress-site","status":"publish","type":"post","link":"https:\/\/johnnycarlos.com\/index.php\/2026\/06\/12\/upgrading-ubuntu-22-04-to-24-04-while-running-a-live-wordpress-site\/","title":{"rendered":"Upgrading Ubuntu 22.04 to 24.04 While Running a Live WordPress Site"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I was today years old when I realized that my hosting service (Linode) allows for one snapshot.  This finally gave me the impetus to upgrade Ubuntu since I&#8217;m comforted knowing there&#8217;s a one button rollback.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First thing I did was update all my WordPress plugins.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then I ran the following sequence:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt upgrade -y     # get current on 22.04 first\nsudo reboot                                 # clear any pending kernel\nsudo do-release-upgrade                     # the main event<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Everything worked fine except Apache would not start and was giving me:  AH00534: apache2: Configuration error: No MPM loaded.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I fixed it with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install libapache2-mod-php8.3\nsudo a2dismod mpm_event 2>\/dev\/null\nsudo a2enmod mpm_prefork\nsudo a2enmod php8.3\nsudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After that I got the following error:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Syntax error on line 146 of \/etc\/apache2\/apache2.conf: Syntax error on line 3 of \/etc\/apache2\/mods-enabled\/php8.1.load: Cannot load \/usr\/lib\/apache2\/modules\/libphp8.1.so into server: \/usr\/lib\/apache2\/modules\/libphp8.1.so: cannot open shared object file: No such file or directory<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Which I fixed with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2dismod php8.1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The site came up fine and WordPress was mostly working.  MonsterInsights was complaining.  I poked it with a stick a few times and couldn&#8217;t figure it out so I just disabled the plugin.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Not like anyone reads my blog anyways, right?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was today years old when I realized that my hosting service (Linode) allows for one snapshot. This finally gave me the impetus to upgrade Ubuntu since I&#8217;m comforted knowing there&#8217;s a one button rollback. First thing I did was update all my WordPress plugins. Then I ran the following sequence: Everything worked fine except [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[28,36,29],"tags":[],"class_list":["post-1330","post","type-post","status-publish","format-standard","hentry","category-blog","category-linux","category-today-i-learned"],"_links":{"self":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts\/1330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/comments?post=1330"}],"version-history":[{"count":2,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts\/1330\/revisions"}],"predecessor-version":[{"id":1333,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/posts\/1330\/revisions\/1333"}],"wp:attachment":[{"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/media?parent=1330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/categories?post=1330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnnycarlos.com\/index.php\/wp-json\/wp\/v2\/tags?post=1330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}