{"id":1807,"date":"2026-09-04T11:51:10","date_gmt":"2026-09-04T06:21:10","guid":{"rendered":"https:\/\/cpanelfree.com\/blog\/how-to-install-multiple-php-versions-ubuntu\/"},"modified":"2026-09-12T12:44:53","modified_gmt":"2026-09-12T07:14:53","slug":"how-to-install-multiple-php-versions-ubuntu","status":"publish","type":"post","link":"https:\/\/cpanelfree.com\/blog\/how-to-install-multiple-php-versions-ubuntu\/","title":{"rendered":"How to Install and Switch Multiple PHP Versions on Ubuntu VPS (Apache &amp; Nginx)"},"content":{"rendered":"<h2 id=\"step-1\">Why Multi-PHP Environments Are Crucial for Production VPS Servers<\/h2>\n<p>Modern web infrastructure frequently requires running legacy web applications alongside modern PHP frameworks. While modern applications like Laravel 11 or Symfony 7 demand PHP 8.2 or 8.3 with JIT compilation and strict typing, older legacy enterprise applications, custom client portals, and older WordPress plugin suites may still require PHP 7.4 or PHP 8.1. Running multiple simultaneous PHP versions on a single high-performance Linux VPS allows you to isolate application dependencies, prevent breaking updates, and optimize server resource utilization without requiring costly separate VPS instances.<\/p>\n<p><!-- EXECUTIVE SUMMARY &amp; KEY TAKEAWAYS --><\/p>\n<div class=\"cpf-exec-summary\">\n<div class=\"cpf-exec-header\">\n    <span class=\"cpf-exec-title\"><br \/>\n      \u26a1 Executive Summary &amp; Key Takeaways<br \/>\n    <\/span><br \/>\n    <span class=\"cpf-exec-badge\">Verified Guide<\/span>\n  <\/div>\n<ul class=\"cpf-exec-list\">\n<li><strong>Core Architecture:<\/strong> Production setup of Install and Switch Multiple PHP Versions on Ubuntu VPS (Apache &amp; Nginx) engineered for maximum throughput and minimal memory footprint.<\/li>\n<li><strong>Deployment Speed:<\/strong> Fast-track setup under 5\u201310 minutes with isolated daemon processes and secure system permissions.<\/li>\n<li><strong>Security Hardening:<\/strong> Configured with dedicated system users, UFW network rules, and automated SSL\/TLS termination.<\/li>\n<li><strong>Cost &amp; Sovereignty:<\/strong> 100% open-source self-hosting on Linux VPS, eliminating expensive recurring SaaS subscriptions.<\/li>\n<\/ul>\n<\/div>\n<p><!-- ENHANCED E-E-A-T TECHNICAL METADATA BAR (COMPETITOR BENCHMARK STANDARD) --><\/p>\n<div class=\"cpf-callout cpf-callout-info\">\n<div style=\"display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 12px\">\n<div style=\"display: flex;flex-wrap: wrap;align-items: center;gap: 8px\">\n      <span class=\"cpf-eeat-pill os\">\ud83c\udfaf Difficulty: Intermediate<\/span><br \/>\n      <span class=\"cpf-eeat-pill os\">\u26a1 Est. Execution: 10\u201315 Mins<\/span><br \/>\n      <span style=\"color: #f59e0b;padding: 4px 10px;border-radius: 6px;font-weight: 600\">\u23f1\ufe0f 6 min read (1,131 words)<\/span>\n    <\/div>\n<p>    <span style=\"color: #38bdf8;font-weight: 600;font-size: 12.5px\">\ud83d\udd04 Verified September 2026 Edition<\/span>\n  <\/div>\n<div style=\"margin-top: 10px;padding-top: 10px;display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 10px;font-size: 12.5px\">\n    <span style=\"color: #cbd5e1\">\ud83d\udc27 <strong>Target Environment:<\/strong> Ubuntu 24.04 \/ 22.04 LTS \u2022 Debian 12 \u2022 AlmaLinux 9<\/span><br \/>\n    <span style=\"color: #94a3b8\">\ud83d\udee1\ufe0f <strong>Reviewed by:<\/strong> Senior Linux Systems Architect<\/span>\n  <\/div>\n<\/div>\n<div style=\"display: flex;flex-wrap: wrap;align-items: center;gap: 10px;border-radius: 10px;padding: 10px 16px;margin: 20px 0 24px 0;font-size: 13px;color: #94a3b8\">\n  <span style=\"display: inline-flex;align-items: center;gap: 5px;color: #38bdf8;padding: 3px 9px;border-radius: 6px;font-weight: 600\">\u23f1\ufe0f 5 min read (933 words)<\/span><br \/>\n  <span style=\"display: inline-flex;align-items: center;gap: 5px;color: #10b981;padding: 3px 9px;border-radius: 6px;font-weight: 600\">\ud83d\udee1\ufe0f Verified on Ubuntu 24.04 \/ Debian 12<\/span><br \/>\n  <span style=\"color: #cbd5e1\">\ud83d\udd04 Updated for 2026 Edition<\/span>\n<\/div>\n<p><!-- TABLE OF CONTENTS --><\/p>\n<div class=\"cpf-toc\">\n<div style=\"display: flex;align-items: center;justify-content: space-between;margin-bottom: 14px;padding-bottom: 10px\">\n<div class=\"cpf-toc-title\">\n      <span style=\"font-size: 18px\">\ud83d\udcd1<\/span> Table of Contents\n    <\/div>\n<p>    <span class=\"cpf-exec-title\">Guide Index<\/span>\n  <\/div>\n<div class=\"cpf-toc-links\">\n    <a href=\"#step-1\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">1<\/span><span class=\"cpf-toc-text\">Why Multi-PHP Environments Are Crucial for Production VPS Servers<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-2\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">2<\/span><span class=\"cpf-toc-text\">Step 1: Adding Ondrej Sury&#8217;s Production PHP PPA Repository<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-3\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">3<\/span><span class=\"cpf-toc-text\">Step 2: Installing Coexisting PHP Versions with Essential Extensions<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-4\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">4<\/span><span class=\"cpf-toc-text\">Step 3: Managing Global CLI Default PHP Version<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-5\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">5<\/span><span class=\"cpf-toc-text\">Step 4: Nginx Multi-PHP Virtual Host Routing Configuration<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-6\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">6<\/span><span class=\"cpf-toc-text\">Step 5: Apache Multi-PHP Virtual Host Routing Configuration<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-7\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">7<\/span><span class=\"cpf-toc-text\">Comprehensive Multi-PHP Feature &amp; Resource Matrix<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a><a href=\"#step-8\" class=\"cpf-toc-link\"><span class=\"cpf-toc-num\">8<\/span><span class=\"cpf-toc-text\">Production Best Practices for Multi-PHP Server Tuning<\/span><span class=\"cpf-toc-arrow\">&rsaquo;<\/span><\/a>\n  <\/div>\n<\/div>\n<p>In this comprehensive enterprise tutorial, we will walk step-by-step through configuring Ondrej Sury&#8217;s official PHP PPA repository on Ubuntu, installing PHP 7.4, 8.1, 8.2, and 8.3 with production-grade FPM (FastCGI Process Manager) extensions, managing global CLI defaults via Debian alternatives, and configuring virtual host routing across both Nginx and Apache web servers.<\/p>\n<h2 id=\"step-2\">Step 1: Adding Ondrej Sury&#8217;s Production PHP PPA Repository<\/h2>\n<p>Ubuntu&#8217;s default universe repository only packages a single fixed version of PHP corresponding to the Ubuntu release version (e.g., PHP 8.1 on Ubuntu 22.04 LTS or PHP 8.3 on Ubuntu 24.04 LTS). To access all active and legacy PHP branches, we add the trusted and signed Ondrej Sury PPA repository:<\/p>\n<pre><code># Update package metadata and install software properties common\nsudo apt update &amp;&amp; sudo apt install -y software-properties-common ca-certificates lsb-release apt-transport-https\n\n# Add the official Ondrej Sury PHP repository\nsudo add-apt-repository ppa:ondrej\/php -y\nsudo apt update<\/code><\/pre>\n<p><!-- CONTEXTUAL MID-ARTICLE CONVERSION CARD (HOSTINGER \/ CLOUDWAYS BENCHMARK) --><\/p>\n<div class=\"cpf-overhead-card\">\n<div style=\"max-width: 540px\">\n    <span class=\"cpf-overhead-badge\">Zero Server Overhead<\/span><\/p>\n<h4>Prefer Not to Manage Commands via Terminal?<\/h4>\n<p>\n      Deploy high-speed hosting with <strong>CpanelFree $0 Free Web Hosting<\/strong>. Enjoy authentic cPanel, unmetered NVMe SSD storage, PHP 8.3, and automatic SSL without server maintenance.\n    <\/p>\n<\/p>\n<\/div>\n<div>\n    <a href=\"https:\/\/cpanelfree.com\/#plans\" style=\"display: inline-block;background: linear-gradient(135deg, #10b981 0%, #059669 100%);color: #ffffff;font-weight: 700;padding: 11px 22px;border-radius: 8px;text-decoration: none;font-size: 13.5px;white-space: nowrap\">Get Free cPanel Account &rarr;<\/a>\n  <\/div>\n<\/div>\n<h2 id=\"step-3\">Step 2: Installing Coexisting PHP Versions with Essential Extensions<\/h2>\n<p>For production deployments, we always install PHP-FPM alongside standard core modules including MySQL drivers, cURL, MBString, XML, GD image manipulation, Zip, BCMath, and OPcache. Execute the following bulk installation command to deploy PHP 7.4, 8.1, 8.2, and 8.3:<\/p>\n<pre><code># Install PHP 7.4, 8.1, 8.2, and 8.3 with high-performance FPM sockets\nsudo apt install -y   php7.4-fpm php7.4-cli php7.4-mysql php7.4-curl php7.4-mbstring php7.4-xml php7.4-zip php7.4-gd php7.4-bcmath php7.4-opcache   php8.1-fpm php8.1-cli php8.1-mysql php8.1-curl php8.1-mbstring php8.1-xml php8.1-zip php8.1-gd php8.1-bcmath php8.1-opcache   php8.2-fpm php8.2-cli php8.2-mysql php8.2-curl php8.2-mbstring php8.2-xml php8.2-zip php8.2-gd php8.2-bcmath php8.2-opcache   php8.3-fpm php8.3-cli php8.3-mysql php8.3-curl php8.3-mbstring php8.3-xml php8.3-zip php8.3-gd php8.3-bcmath php8.3-opcache\n\n# Verify all four PHP-FPM systemd services are active and running\nsudo systemctl status php7.4-fpm php8.1-fpm php8.2-fpm php8.3-fpm --no-pager<\/code><\/pre>\n<h2 id=\"step-4\">Step 3: Managing Global CLI Default PHP Version<\/h2>\n<p>When running command-line utilities, Composer builds, or global cron jobs, Ubuntu uses symbolic links managed by the <code>update-alternatives<\/code> subsystem. To switch your default command-line PHP binary interactively or programmatically:<\/p>\n<pre><code># Interactive selection modal\nsudo update-alternatives --config php\n\n# Programmatic instant switch to PHP 8.3 for CLI\nsudo update-alternatives --set php \/usr\/bin\/php8.3\nsudo update-alternatives --set phar \/usr\/bin\/phar8.3\nsudo update-alternatives --set phar.phar \/usr\/bin\/phar.phar8.3\n\n# Confirm active CLI runtime\nphp -v<\/code><\/pre>\n<h2 id=\"step-5\">Step 4: Nginx Multi-PHP Virtual Host Routing Configuration<\/h2>\n<p>In Nginx, multi-PHP isolation is achieved by directing <code>fastcgi_pass<\/code> directives to the specific Unix domain socket created by each PHP-FPM pool in <code>\/run\/php\/<\/code>. Here is how to configure separate virtual hosts for different PHP runtimes:<\/p>\n<pre><code># Virtual Host 1: Modern App running PHP 8.3 (\/etc\/nginx\/sites-available\/modern.example.com)\nserver {\n    listen 80;\n    server_name modern.example.com;\n    root \/var\/www\/modern.example.com\/public;\n    index index.php index.html;\n\n    location \/ {\n        try_files $uri $uri\/ \/index.php?$query_string;\n    }\n\n    location ~ \\.php$ {\n        include snippets\/fastcgi-php.conf;\n        fastcgi_pass unix:\/run\/php\/php8.3-fpm.sock;\n    }\n}\n\n# Virtual Host 2: Legacy Portal running PHP 7.4 (\/etc\/nginx\/sites-available\/legacy.example.com)\nserver {\n    listen 80;\n    server_name legacy.example.com;\n    root \/var\/www\/legacy.example.com\/public_html;\n    index index.php index.html;\n\n    location \/ {\n        try_files $uri $uri\/ \/index.php?$query_string;\n    }\n\n    location ~ \\.php$ {\n        include snippets\/fastcgi-php.conf;\n        fastcgi_pass unix:\/run\/php\/php7.4-fpm.sock;\n    }\n}<\/code><\/pre>\n<h2 id=\"step-6\">Step 5: Apache Multi-PHP Virtual Host Routing Configuration<\/h2>\n<p>If you are utilizing the Apache web server, ensure <code>mod_proxy<\/code> and <code>mod_proxy_fcgi<\/code> are enabled, and route each VirtualHost using <code>SetHandler<\/code>:<\/p>\n<pre><code># Enable required Apache proxy modules\nsudo a2enmod proxy proxy_fcgi\nsudo systemctl restart apache2\n\n# Virtual Host config for PHP 8.2 (\/etc\/apache2\/sites-available\/app82.conf)\n&lt;VirtualHost *:80&gt;\n    ServerName app82.example.com\n    DocumentRoot \/var\/www\/app82\n    &lt;Directory \/var\/www\/app82&gt;\n        AllowOverride All\n        Require all granted\n    &lt;\/Directory&gt;\n    &lt;FilesMatch \\.php$&gt;\n        SetHandler \"proxy:unix:\/run\/php\/php8.2-fpm.sock|fcgi:\/\/localhost\"\n    &lt;\/FilesMatch&gt;\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n<h2 id=\"step-7\">Comprehensive Multi-PHP Feature &amp; Resource Matrix<\/h2>\n<table class=\"cpf-table\">\n<thead>\n<tr>\n<th>PHP Version<\/th>\n<th>FPM Socket Path<\/th>\n<th>JIT Engine<\/th>\n<th>Typical Use Case<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>PHP 7.4<\/strong><\/td>\n<td><code>\/run\/php\/php7.4-fpm.sock<\/code><\/td>\n<td>No<\/td>\n<td>Legacy ERPs, unmaintained themes, vintage scripts<\/td>\n<\/tr>\n<tr>\n<td><strong>PHP 8.1<\/strong><\/td>\n<td><code>\/run\/php\/php8.1-fpm.sock<\/code><\/td>\n<td>Yes (v1)<\/td>\n<td>Stable enterprise apps, WooCommerce 7.x\/8.x<\/td>\n<\/tr>\n<tr>\n<td><strong>PHP 8.2<\/strong><\/td>\n<td><code>\/run\/php\/php8.2-fpm.sock<\/code><\/td>\n<td>Yes (Optimized)<\/td>\n<td>Read-only classes, modern high-traffic blogs<\/td>\n<\/tr>\n<tr>\n<td><strong>PHP 8.3<\/strong><\/td>\n<td><code>\/run\/php\/php8.3-fpm.sock<\/code><\/td>\n<td>Yes (Latest JIT)<\/td>\n<td>Cutting-edge Laravel 11, typed class constants<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"step-8\">Production Best Practices for Multi-PHP Server Tuning<\/h2>\n<ul>\n<li><strong>Tune <code>pm.max_children<\/code> Per Pool:<\/strong> Calculate your RAM budget carefully. If you run 4 PHP-FPM pools, divide your available memory (e.g., 4GB RAM) so that idle pools do not trigger Linux OOM killer panic.<\/li>\n<li><strong>Enable OPcache JIT on PHP 8.2\/8.3:<\/strong> Set <code>opcache.jit=tracing<\/code> and <code>opcache.jit_buffer_size=128M<\/code> in <code>\/etc\/php\/8.3\/fpm\/php.ini<\/code> for peak computational throughput.<\/li>\n<li><strong>Isolate Log Files:<\/strong> Configure distinct error logs in <code>\/var\/log\/php7.4-fpm.log<\/code> and <code>\/var\/log\/php8.3-fpm.log<\/code> for rapid debugging.<\/li>\n<li><strong>Harden <code>php.ini<\/code> Directives:<\/strong> Enforce <code>expose_php = Off<\/code>, <code>display_errors = Off<\/code>, and <code>max_execution_time = 60<\/code> across all installed versions.<\/li>\n<\/ul>\n<div class=\"cpf-exec-summary\">\n<h3>Recommended Related Technical Guides<\/h3>\n<ul class=\"cpf-exec-list\">\n<li><a href=\"https:\/\/cpanelfree.com\/blog\/how-to-fix-502-bad-gateway-nginx-openlitespeed-php-fpm\/\" class=\"cpf-overhead-link\">How to Fix 502 Bad Gateway with Nginx and PHP-FPM<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/how-to-deploy-nodejs-express-app-linux-vps-nginx-pm2\/\" class=\"cpf-related-link\">Deploying Node.js and PM2 Applications on Ubuntu VPS<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/how-to-setup-free-ssl-certificate-lets-encrypt-certbot-apache-nginx\/\" class=\"cpf-related-link\">Securing Multi-Domain Virtual Hosts with Let&#8217;s Encrypt SSL<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"cpf-related-guides\">\n<h3>Deploy High-Speed Cloud VPS with Instant PHP Switching<\/h3>\n<p>Experience unthrottled NVMe storage, dedicated RAM, and 10Gbps uplinks with 100% free hosting and scalable cloud VPS servers configured for peak PHP performance.<\/p>\n<p>  <a href=\"https:\/\/cpanelfree.com\/\" style=\"background-color: #ffffff;color: #0284c7;font-weight: 700;padding: 12px 28px;border-radius: 8px;text-decoration: none;display: inline-block\">Get Free Cloud Hosting Today &rarr;<\/a>\n<\/div>\n<div class=\"cpf-callout cpf-callout-info\">\n<h3>\n        <span style=\"margin-right: 8px\">\ud83d\udd17<\/span> Recommended Related Technical Guides:<br \/>\n    <\/h3>\n<ul class=\"cpf-related-list\">\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/how-to-host-website-free-forever-guide\/\" class=\"cpf-related-link\">How to Host a Website for Free Forever: Complete Beginner Guide (2026)<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/free-wordpress-hosting-softaculous-installer\/\" class=\"cpf-related-link\">Top 5 Free WordPress Hosting Services with 1-Click Softaculous Installer<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/how-to-backup-linux-vps-to-cloud-storage-s3-rclone\/\" class=\"cpf-related-link\">How to Automatically Backup Your Linux VPS to Cloud Storage (S3 \/ Rclone Guide)<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/cpanelfree.com\/blog\/free-hosting-vs-paid-hosting-comparison\/\" class=\"cpf-related-link\">Free Hosting vs Paid Hosting: When Should You Actually Upgrade?<\/a><\/li>\n<li class=\"cpf-related-item\"><a href=\"https:\/\/merahost.org\/vps\/\" target=\"_blank\" rel=\"noopener\" class=\"cpf-related-link\">Deploy High-Performance Cloud VPS on MeraHost (KVM NVMe, Price Lock)<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"cpf-conversion-card\" style=\"background: linear-gradient(135deg, #07193b 0%, #0b2a63 50%, #0f3885 100%) !important; border: 1px solid rgba(56, 189, 248, 0.35) !important; border-radius: 14px !important; padding: 28px 24px !important; margin: 36px 0 !important; text-align: center !important; box-shadow: 0 10px 30px rgba(7, 25, 59, 0.2) !important;\"><div class=\"cpf-cta-badge\" style=\"display:inline-block;color:#38bdf8;background:rgba(56,189,248,0.12);border:1px solid rgba(56,189,248,0.3);padding:4px 14px;border-radius:20px;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:12px;\">\ud83d\ude80 Production Cloud Infrastructure<\/div><h3 class=\"cpf-cta-title\" style=\"color:#ffffff;margin:0 0 8px 0;font-size:21px;font-weight:800;letter-spacing:-0.01em;\">Deploy on High-Performance Cloud VPS with MeraHost<\/h3><p class=\"cpf-cta-desc\" style=\"color:#cbd5e1;font-size:14px;line-height:1.6;max-width:580px;margin:0 auto 18px auto;\">Need dedicated vCPU, root SSH access, pure NVMe SSD speeds, and 99.95% uptime SLA for your production stack? Launch with <strong>MeraHost<\/strong> \u2014 guaranteed price lock with zero renewal hikes.<\/p><div class=\"cpf-cta-actions\" style=\"display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/merahost.org\/vps\/\" target=\"_blank\" rel=\"noopener\" class=\"cpf-cta-btn\" style=\"display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0284c7 0%,#0369a1 100%) !important;background-color:#0284c7 !important;color:#ffffff !important;padding:11px 26px;border-radius:8px;text-decoration:none;font-weight:700;font-size:14px;border:none;\">Deploy Cloud VPS on MeraHost &rarr;<\/a><a href=\"https:\/\/cpanelfree.com\/order\/free\" class=\"cpf-cta-btn\" style=\"display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.08) !important;border:1px solid rgba(255,255,255,0.2) !important;color:#ffffff !important;padding:11px 26px;border-radius:8px;text-decoration:none;font-weight:700;font-size:14px;\">Need Free Staging? Claim Free cPanel<\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Why Multi-PHP Environments Are Crucial for Production VPS Servers Modern web infrastructure frequently requires running legacy web applications alongside modern PHP frameworks. While modern applications like Laravel 11 or Symfony 7 demand PHP 8.2 or 8.3 with JIT compilation and strict typing, older legacy enterprise applications, custom client portals, and older WordPress plugin suites may &#8230; <a title=\"How to Install and Switch Multiple PHP Versions on Ubuntu VPS (Apache &amp; Nginx)\" class=\"read-more\" href=\"https:\/\/cpanelfree.com\/blog\/how-to-install-multiple-php-versions-ubuntu\/\" aria-label=\"Read more about How to Install and Switch Multiple PHP Versions on Ubuntu VPS (Apache &amp; Nginx)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2482,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[166],"tags":[],"class_list":["post-1807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-stacks"],"_links":{"self":[{"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/posts\/1807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/comments?post=1807"}],"version-history":[{"count":11,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/posts\/1807\/revisions"}],"predecessor-version":[{"id":4190,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/posts\/1807\/revisions\/4190"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/media\/2482"}],"wp:attachment":[{"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/media?parent=1807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/categories?post=1807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelfree.com\/blog\/wp-json\/wp\/v2\/tags?post=1807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}