{"id":1088,"date":"2024-07-14T17:41:53","date_gmt":"2024-07-14T17:41:53","guid":{"rendered":"https:\/\/www.devopsconsulting.in\/blog\/?p=1088"},"modified":"2024-09-25T09:01:07","modified_gmt":"2024-09-25T09:01:07","slug":"how-to-downgrade-php-version-on-ubuntu-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/","title":{"rendered":"How to Downgrade PHP Version on Ubuntu: Step-by-Step Guide"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" src=\"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user--1024x585.webp\" alt=\"\" class=\"wp-image-1091\" srcset=\"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user--1024x585.webp 1024w, https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user--300x171.webp 300w, https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user--768x439.webp 768w, https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user--1536x878.webp 1536w, https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-.webp 1792w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Downgrading the PHP version<\/strong> on an Ubuntu server involves several steps. Below is a detailed guide on how to achieve this:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Check the Current PHP Version<\/h2>\n\n\n\n<p><strong>Run the following command to check the current PHP version installed:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -v<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"83\" src=\"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/image-1.png\" alt=\"\" class=\"wp-image-1089\" srcset=\"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/image-1.png 552w, https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/image-1-300x45.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: List Available PHP Versions<\/h2>\n\n\n\n<p><strong>Before downgrading, you should check which PHP versions are available. Add the repository that contains multiple PHP versions:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo add-apt-repository ppa:ondrej\/php\nsudo apt update<\/code><\/pre>\n\n\n\n<p><strong>Now, list the available PHP versions:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-cache showpkg php<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Install the Desired PHP Version<\/h2>\n\n\n\n<p><strong>Install the desired PHP version (for example, PHP 8.1), you can run:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php8.1<\/code><\/pre>\n\n\n\n<p><strong>If you need specific PHP extensions, install them as well. For example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php8.1-mysql php8.1-xml php8.1-gd php8.1-mbstring<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Disable the Current PHP Version<\/h2>\n\n\n\n<p><strong>If you have a newer PHP version enabled, disable it. For example, if you have PHP 8<\/strong>.<strong>2<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2dismod php8.2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Enable the Desired PHP Version<\/h2>\n\n\n\n<p><strong>Enable the PHP version you just installed. For example, to enable PHP 8.1:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod php8.1<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Update Alternatives<\/h2>\n\n\n\n<p><strong>Set the newly installed PHP version as the default<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo update-alternatives --set php \/usr\/bin\/php8.1\nsudo update-alternatives --set phar \/usr\/bin\/phar8.1\nsudo update-alternatives --set phar.phar \/usr\/bin\/phar.phar8.1<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7: Restart Apache\/Nginx<\/h2>\n\n\n\n<p><strong>Restart your web server to apply the changes:<\/strong><\/p>\n\n\n\n<p>For Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo \/opt\/lampp\/lampp restart<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 8: Verify the PHP Version<\/h2>\n\n\n\n<p><strong>Finally, verify that the correct PHP version is now in use:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"119\" src=\"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/image-2.png\" alt=\"\" class=\"wp-image-1090\" srcset=\"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/image-2.png 558w, https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/image-2-300x64.png 300w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/figure>\n\n\n\n<p>By following these steps, you should be able to downgrade the PHP version on your Ubuntu server successfully. If you encounter any issues, ensure all dependencies and configurations are properly adjusted to match the PHP version you are downgrading to.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Downgrading the PHP version on an Ubuntu server involves several steps. Below is a detailed guide on how to achieve this: Step 1: Check the Current PHP&#8230; <\/p>\n","protected":false},"author":2,"featured_media":1092,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[98,96,280],"tags":[269,266,281,267,278,273,274,277,265,271,275,272,392,268,276,270,279],"class_list":["post-1088","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-php","category-ubuntu","tag-change-php-version-ubuntu","tag-downgrade-php-version-ubuntu","tag-how-to-downgrade-php-version-on-ubuntu","tag-install-older-php-ubuntu","tag-manage-php-versions-ubuntu","tag-php-7-4-installation-ubuntu","tag-php-8-0-to-7-4-ubuntu","tag-php-version-downgrade-tutorial","tag-php-version-switch-ubuntu","tag-revert-php-version-ubuntu","tag-step-by-step-php-downgrade-ubuntu","tag-switch-php-versions-ubuntu","tag-ubuntu-downgrade-php-8-to-7-4","tag-ubuntu-php-downgrade-guide","tag-ubuntu-php-version-control","tag-ubuntu-php-version-management","tag-ubuntu-php-version-setup"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Downgrade PHP Version on Ubuntu: Step-by-Step Guide - DevOps Consulting<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Downgrade PHP Version on Ubuntu: Step-by-Step Guide - DevOps Consulting\" \/>\n<meta property=\"og:description\" content=\"Downgrading the PHP version on an Ubuntu server involves several steps. Below is a detailed guide on how to achieve this: Step 1: Check the Current PHP...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-14T17:41:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-25T09:01:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-1-1.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1792\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Abhishek Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhishek Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/\"},\"author\":{\"name\":\"Abhishek Singh\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/#\\\/schema\\\/person\\\/fc397ba8be42f9fdd53450edfc73006f\"},\"headline\":\"How to Downgrade PHP Version on Ubuntu: Step-by-Step Guide\",\"datePublished\":\"2024-07-14T17:41:53+00:00\",\"dateModified\":\"2024-09-25T09:01:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/\"},\"wordCount\":227,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-1-1.webp\",\"keywords\":[\"Change PHP version Ubuntu\",\"Downgrade PHP version Ubuntu\",\"How to Downgrade PHP Version on Ubuntu\",\"Install older PHP Ubuntu\",\"Manage PHP versions Ubuntu\",\"PHP 7.4 installation Ubuntu\",\"PHP 8.0 to 7.4 Ubuntu\",\"PHP version downgrade tutorial\",\"PHP version switch Ubuntu\",\"Revert PHP version Ubuntu\",\"Step-by-step PHP downgrade Ubuntu\",\"Switch PHP versions Ubuntu\",\"ubuntu downgrade php 8 to 7.4\",\"Ubuntu PHP downgrade guide\",\"Ubuntu PHP version control\",\"Ubuntu PHP version management\",\"Ubuntu PHP version setup\"],\"articleSection\":[\"linux\",\"php\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/\",\"url\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/\",\"name\":\"How to Downgrade PHP Version on Ubuntu: Step-by-Step Guide - DevOps Consulting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-1-1.webp\",\"datePublished\":\"2024-07-14T17:41:53+00:00\",\"dateModified\":\"2024-09-25T09:01:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/#\\\/schema\\\/person\\\/fc397ba8be42f9fdd53450edfc73006f\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-1-1.webp\",\"contentUrl\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-1-1.webp\",\"width\":1792,\"height\":1024},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/\",\"name\":\"DevOps Consulting\",\"description\":\"DevOps Consulting | SRE Consulting | DevSecOps Consulting | MLOps Consulting\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/#\\\/schema\\\/person\\\/fc397ba8be42f9fdd53450edfc73006f\",\"name\":\"Abhishek Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g\",\"caption\":\"Abhishek Singh\"},\"description\":\"I\u2019m Abhishek, a DevOps, SRE, DevSecOps, and Cloud expert with a passion for sharing knowledge and real-world experiences. I\u2019ve had the opportunity to work with Cotocus and continue to contribute to multiple platforms where I share insights across different domains: \u2022 DevOps School \u2013 Tech blogs and tutorials \u2022 Holiday Landmark \u2013 Travel stories and guides \u2022 Stocks Mantra \u2013 Stock market strategies and tips \u2022 My Medic Plus \u2013 Health and fitness guidance \u2022 TrueReviewNow \u2013 Honest product reviews \u2022 Wizbrand \u2013 SEO and digital tools for businesses I\u2019m also exploring the fascinating world of Quantum Computing.\",\"url\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/author\\\/abhishek\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Downgrade PHP Version on Ubuntu: Step-by-Step Guide - DevOps Consulting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/","og_locale":"en_US","og_type":"article","og_title":"How to Downgrade PHP Version on Ubuntu: Step-by-Step Guide - DevOps Consulting","og_description":"Downgrading the PHP version on an Ubuntu server involves several steps. Below is a detailed guide on how to achieve this: Step 1: Check the Current PHP...","og_url":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/","og_site_name":"DevOps Consulting","article_published_time":"2024-07-14T17:41:53+00:00","article_modified_time":"2024-09-25T09:01:07+00:00","og_image":[{"width":1792,"height":1024,"url":"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-1-1.webp","type":"image\/webp"}],"author":"Abhishek Singh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Abhishek Singh","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/#article","isPartOf":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/"},"author":{"name":"Abhishek Singh","@id":"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/fc397ba8be42f9fdd53450edfc73006f"},"headline":"How to Downgrade PHP Version on Ubuntu: Step-by-Step Guide","datePublished":"2024-07-14T17:41:53+00:00","dateModified":"2024-09-25T09:01:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/"},"wordCount":227,"commentCount":1,"image":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-1-1.webp","keywords":["Change PHP version Ubuntu","Downgrade PHP version Ubuntu","How to Downgrade PHP Version on Ubuntu","Install older PHP Ubuntu","Manage PHP versions Ubuntu","PHP 7.4 installation Ubuntu","PHP 8.0 to 7.4 Ubuntu","PHP version downgrade tutorial","PHP version switch Ubuntu","Revert PHP version Ubuntu","Step-by-step PHP downgrade Ubuntu","Switch PHP versions Ubuntu","ubuntu downgrade php 8 to 7.4","Ubuntu PHP downgrade guide","Ubuntu PHP version control","Ubuntu PHP version management","Ubuntu PHP version setup"],"articleSection":["linux","php","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/","url":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/","name":"How to Downgrade PHP Version on Ubuntu: Step-by-Step Guide - DevOps Consulting","isPartOf":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-1-1.webp","datePublished":"2024-07-14T17:41:53+00:00","dateModified":"2024-09-25T09:01:07+00:00","author":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/fc397ba8be42f9fdd53450edfc73006f"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsconsulting.in\/blog\/how-to-downgrade-php-version-on-ubuntu-step-by-step-guide\/#primaryimage","url":"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-1-1.webp","contentUrl":"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/07\/A-step-by-step-guide-illustration-on-how-to-downgrade-PHP-version-on-Ubuntu.-The-image-should-depict-a-computer-screen-with-terminal-commands-a-user-1-1.webp","width":1792,"height":1024},{"@type":"WebSite","@id":"https:\/\/www.devopsconsulting.in\/blog\/#website","url":"https:\/\/www.devopsconsulting.in\/blog\/","name":"DevOps Consulting","description":"DevOps Consulting | SRE Consulting | DevSecOps Consulting | MLOps Consulting","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.devopsconsulting.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/fc397ba8be42f9fdd53450edfc73006f","name":"Abhishek Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g","caption":"Abhishek Singh"},"description":"I\u2019m Abhishek, a DevOps, SRE, DevSecOps, and Cloud expert with a passion for sharing knowledge and real-world experiences. I\u2019ve had the opportunity to work with Cotocus and continue to contribute to multiple platforms where I share insights across different domains: \u2022 DevOps School \u2013 Tech blogs and tutorials \u2022 Holiday Landmark \u2013 Travel stories and guides \u2022 Stocks Mantra \u2013 Stock market strategies and tips \u2022 My Medic Plus \u2013 Health and fitness guidance \u2022 TrueReviewNow \u2013 Honest product reviews \u2022 Wizbrand \u2013 SEO and digital tools for businesses I\u2019m also exploring the fascinating world of Quantum Computing.","url":"https:\/\/www.devopsconsulting.in\/blog\/author\/abhishek\/"}]}},"_links":{"self":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts\/1088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/comments?post=1088"}],"version-history":[{"count":5,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts\/1088\/revisions"}],"predecessor-version":[{"id":1232,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts\/1088\/revisions\/1232"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/media\/1092"}],"wp:attachment":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/media?parent=1088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/categories?post=1088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/tags?post=1088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}