{"id":470,"date":"2025-01-19T23:01:04","date_gmt":"2025-01-19T23:01:04","guid":{"rendered":"https:\/\/www.flexpaul.com\/?p=470"},"modified":"2025-01-19T23:01:04","modified_gmt":"2025-01-19T23:01:04","slug":"removing-php7-4-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/www.flexpaul.com\/index.php\/2025\/01\/19\/removing-php7-4-on-ubuntu-22-04\/","title":{"rendered":"Removing php7.4 on Ubuntu 22.04"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In a <a href=\"https:\/\/www.flexpaul.com\/index.php\/2025\/01\/12\/remove-xoops-from-server\/\" data-type=\"post\" data-id=\"459\">previous post<\/a> we removed Xoops from our server. And in a <a href=\"https:\/\/www.flexpaul.com\/index.php\/2023\/11\/17\/lamp\/\" data-type=\"post\" data-id=\"26\">previous post<\/a> from that we installed a test server with some goodies. In this post we are going to be removing some more of that stuff and preparing our server to install some new stuff. We are basically cleaning up our server. If you do lots of testing of things that most likely don&#8217;t work or they are outdated, like I do, then we have some house work to do.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Removing PHP7<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>sudo apt remove --purge php7.4-{cli,common,curl,zip,gd,mysql,xml,mbstring,json,intl,fpm} libapache2-mod-php7.4<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Press Enter to Continue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now we are going to go ahead and remove the repository we used to originally install php7.4.<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>sudo add-apt-repository --remove ppa:ondrej\/php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Press Enter to Continue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And then we want to wipe anything out that is no longer needed. (My system definitely needs this as I have lots of apt installs and removals)<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"padding-top:0;padding-bottom:0\"><code>sudo apt autoremove<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That should do it. Now, onto building our own CMS from Scratch!<\/p>\n\n\n<div class=\"wp-block-post-author\"><div class=\"wp-block-post-author__avatar\"><img alt='Avatar photo' src='https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/cropped-cropped-image145-96x96.png' srcset='https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/cropped-cropped-image145-192x192.png 2x' class='avatar avatar-96 photo' height='96' width='96' \/><\/div><div class=\"wp-block-post-author__content\"><p class=\"wp-block-post-author__name\"><a href=\"https:\/\/www.flexpaul.com\/index.php\/author\/ppmuetze\/\" target=\"_self\">Paul<\/a><\/p><p class=\"wp-block-post-author__bio\">Coffee-fueled and code-driven, I&#8217;m Paul, a digital nomad tech consultant with a knack for navigating the ever-evolving landscapes of open-source software, solar power, and the occasional political pit stop. With 20+ years of experience under my belt, I&#8217;m excited to share my insights, weave captivating narratives about technology&#8217;s impact, and offer valuable perspectives on leadership and positivity. So, grab your digital passport and join me on this virtual voyage of the internet&#8217;s quirky corners, one thought-provoking discussion at a time. Buckle up, it&#8217;s gonna be an informative and wildly exciting ride!<\/p><\/div><\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a previous post we removed Xoops from our server. And in a previous post from that we installed a test server with some goodies. In this post we are going to be removing some more of that stuff and preparing our server to install some new stuff. We are basically cleaning up our server. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":475,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[367,366,4],"tags":[374,360,370,372,368,356,371,361,369,373],"class_list":["post-470","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-7-4","category-php","category-tutorial","tag-apt-commands","tag-linux-server","tag-php-maintenance","tag-php-removal","tag-php7-4-removal","tag-server-cleanup","tag-software-removal","tag-system-administration","tag-ubuntu-22-04","tag-ubuntu-cleanup"],"jetpack_featured_media_url":"https:\/\/www.flexpaul.com\/wp-content\/uploads\/2025\/01\/php7.4-1.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":7,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":482,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/470\/revisions\/482"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/media\/475"}],"wp:attachment":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}