{"id":4577,"date":"2025-02-10T10:10:57","date_gmt":"2025-02-10T16:10:57","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=4577"},"modified":"2024-12-03T22:10:59","modified_gmt":"2024-12-04T04:10:59","slug":"updating-the-webserver-to-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=4577","title":{"rendered":"Updating the Webserver to Ubuntu 24.04"},"content":{"rendered":"\n<p>I upgraded my webserver to Ubuntu 24.04 LTS recently and ran into an odd little issue. Apache2 refused to start up due to a PHP plugin failing to load. This was specifically PHP 8.1 failing to load as it was replaced in the repos with 8.3. This ended up having a <a href=\"https:\/\/stackoverflow.com\/questions\/72056814\/apache2-wont-start-after-upgrade-to-ubuntu-22-04-lts-cannot-load-usr-lib-apa\" target=\"_blank\" rel=\"noreferrer noopener\">quick fix to get things in order<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"314\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/10\/image-11-1024x314.png\" alt=\"\" class=\"wp-image-4578\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/10\/image-11-1024x314.png 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/10\/image-11-300x92.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/10\/image-11-768x235.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/10\/image-11-1536x470.png 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/10\/image-11.png 1541w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">The Problem<\/figcaption><\/figure>\n\n\n\n<p>All I needed to do was disable the old PHP mod and enable the new one. I used this <a href=\"https:\/\/askubuntu.com\/questions\/1500503\/what-php-version-s-will-be-officially-supported-by-ubuntu-24-04\" target=\"_blank\" rel=\"noreferrer noopener\">reference for which versions would be supported in 24.04<\/a> to enable the correct version. Overall a nice quick fix and my webserver was back operational<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&gt; sudo a2dismod php8.1<br>&gt; sudo systemctl restart apache2<br>&gt; sudo a2enmod php8.3<br>&gt; sudo systemctl restart apache2<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I upgraded my webserver to Ubuntu 24.04 LTS recently and ran into an odd little issue. Apache2 refused to start up due to a PHP plugin failing to load. This was specifically PHP 8.1 failing to load as it was replaced in the repos with 8.3. This ended up having a quick fix to get &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lab.rapternet.us\/?p=4577\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Updating the Webserver to Ubuntu 24.04&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":4578,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[42,14,22,41,86],"class_list":["post-4577","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","tag-apache","tag-quick-bites","tag-services","tag-webservers","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/4577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4577"}],"version-history":[{"count":2,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/4577\/revisions"}],"predecessor-version":[{"id":4655,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/4577\/revisions\/4655"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/media\/4578"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}