{"id":2065,"date":"2025-06-26T08:10:21","date_gmt":"2025-03-06T05:59:34","guid":{"rendered":""},"modified":"2025-02-02T00:46:18","modified_gmt":"2025-02-01T23:46:18","slug":"how-to-install-php-5-6-and-7-0-8-3-with-php-fpm-and-fastcgi-mode-for-ispconfig-3-2-on-debian-10-to-12","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-php-5-6-and-7-0-8-3-with-php-fpm-and-fastcgi-mode-for-ispconfig-3-2-on-debian-10-to-12\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 PHP 5.6 and 7.0 &#8211; 8.3 with PHP-FPM and FastCGI Mode for ISPConfig 3.2 on Debian 10 to 12"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header>\n<h1>\u00a0<\/h1>\n<\/header>\n<article>\n<p><strong>ISPConfig<\/strong> is a powerful open-source hosting control panel that allows you to manage websites, databases, and email servers. In this guide, we will walk you through the installation of multiple PHP versions (5.6, 7.0 &#8211; 8.3) with <strong>PHP-FPM<\/strong> and <strong>FastCGI<\/strong> mode for ISPConfig 3.2 on Debian 10, 11, and 12 using `apt`. Hosting this setup on a  ensures better performance, scalability, and control over your web hosting environment using a <strong>VPS server<\/strong>.<\/p>\n<h2>Step 1: Update Your VPS Server<\/h2>\n<p>Before installing multiple PHP versions, ensure your <a href=\"https:\/\/ie.netcloud24.com\">VPS server<\/a> is up to date. Run the following commands to update the package lists and upgrade your system:<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n<p>Hosting PHP and ISPConfig on a <strong>Windows VPS<\/strong> gives you the flexibility of dedicated resources, allowing you to run multiple PHP versions seamlessly.<\/p>\n<h2>Step 2: Add the SURY Repository for PHP<\/h2>\n<p>The <strong>SURY<\/strong> repository contains all supported PHP versions for Debian. To install multiple PHP versions, add the SURY repository to your system:<\/p>\n<pre><code>\r\nsudo apt install ca-certificates apt-transport-https lsb-release -y\r\nsudo wget -O \/etc\/apt\/trusted.gpg.d\/sury.gpg https:\/\/packages.sury.org\/php\/apt.gpg\r\necho \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" | sudo tee \/etc\/apt\/sources.list.d\/php.list\r\nsudo apt update\r\n<\/code><\/pre>\n<h2>Step 3: Install PHP 5.6 and 7.0 &#8211; 8.3<\/h2>\n<p>Now that the SURY repository is added, you can install the required PHP versions. Run the following commands to install PHP 5.6 and the versions 7.0, 7.4, 8.0, 8.1, 8.2, and 8.3 with PHP-FPM and FastCGI support:<\/p>\n<pre><code>\r\nsudo apt install php5.6-fpm php7.0-fpm php7.4-fpm php8.0-fpm php8.1-fpm php8.2-fpm php8.3-fpm -y\r\n<\/code><\/pre>\n<p>You can also install other PHP extensions needed for your applications (e.g., MySQL, XML, CURL, and more) by running:<\/p>\n<pre><code>\r\nsudo apt install php5.6-mysql php7.0-mysql php7.4-mysql php8.0-mysql php8.1-mysql php8.2-mysql php8.3-mysql -y\r\nsudo apt install php5.6-curl php7.0-curl php8.3-curl php5.6-xml php7.0-xml php8.3-xml -y\r\n<\/code><\/pre>\n<h2>Step 4: Configure PHP-FPM Pools<\/h2>\n<p>PHP-FPM works by creating pools that handle PHP requests. By default, PHP-FPM creates a pool for each PHP version. To configure pools for specific websites or services, navigate to the <code>\/etc\/php\/VERSION\/fpm\/pool.d\/<\/code> directory and edit the pool configuration files. For example, to configure PHP 7.4:<\/p>\n<pre><code>sudo nano \/etc\/php\/7.4\/fpm\/pool.d\/www.conf<\/code><\/pre>\n<p>In this file, you can customize settings such as the listening port or socket, user permissions, and memory limits.<\/p>\n<h2>Step 5: Configure ISPConfig for Multiple PHP Versions<\/h2>\n<p>ISPConfig supports multiple PHP versions, and you can configure websites to use specific PHP versions (either in PHP-FPM or FastCGI mode). To enable additional PHP versions in ISPConfig, follow these steps:<\/p>\n<ol>\n<li>Log in to the ISPConfig control panel.<\/li>\n<li>Go to <strong>System<\/strong> &gt; <strong>Server Config<\/strong>.<\/li>\n<li>Under the <strong>Web<\/strong> tab, find the option to enable multiple PHP versions.<\/li>\n<li>Select the installed PHP versions (5.6, 7.0, 7.4, 8.0, 8.1, 8.2, 8.3) and choose whether you want them to run in PHP-FPM or FastCGI mode.<\/li>\n<li>Click <strong>Save<\/strong> to apply the changes.<\/li>\n<\/ol>\n<p>Once configured, you can assign specific PHP versions to websites within ISPConfig by editing a site\u2019s settings and selecting the desired PHP version from the dropdown menu.<\/p>\n<h2>Step 6: Restart PHP-FPM Services<\/h2>\n<p>After installing and configuring multiple PHP versions, restart the PHP-FPM services for all versions to ensure the changes are applied:<\/p>\n<pre><code>\r\nsudo systemctl restart php5.6-fpm\r\nsudo systemctl restart php7.0-fpm\r\nsudo systemctl restart php7.4-fpm\r\nsudo systemctl restart php8.0-fpm\r\nsudo systemctl restart php8.1-fpm\r\nsudo systemctl restart php8.2-fpm\r\nsudo systemctl restart php8.3-fpm\r\n<\/code><\/pre>\n<h2>Step 7: Verify the Installation<\/h2>\n<p>To verify that multiple PHP versions are working, create a simple PHP info file for each version. Place this file in your website\u2019s document root:<\/p>\n<pre><code>sudo nano \/var\/www\/html\/phpinfo.php<\/code><\/pre>\n<p>Add the following content to the file:<\/p>\n<pre><code>&lt;?php\r\nphpinfo();\r\n?&gt;<\/code><\/pre>\n<p>Save the file and visit <code>http:\/\/your-server-ip\/phpinfo.php<\/code> to see the PHP information page. You can change the PHP version used by editing the site\u2019s PHP settings in ISPConfig.<\/p>\n<h2>Step 8: Optimize Your VPS Server for PHP Hosting<\/h2>\n<p>To ensure optimal performance when hosting websites using multiple PHP versions, hosting your ISPConfig setup on a  is highly recommended. A <strong>VPS server<\/strong> provides the dedicated resources you need to handle different PHP versions and traffic spikes efficiently. You also have the flexibility to scale your resources as your hosting needs grow.<\/p>\n<h2>Conclusion<\/h2>\n<p>Installing multiple PHP versions (5.6, 7.0 &#8211; 8.3) with PHP-FPM and FastCGI mode on Debian 10 to 12 for ISPConfig 3.2 allows you to manage different versions for different websites. By hosting this setup on a , you can ensure better performance, control, and scalability for your web hosting environment.<\/p>\n<p>For more information about VPS hosting and optimizing your PHP setup, visit  today.<\/p>\n<\/article>\n<footer><\/footer>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 ISPConfig is a powerful open-source hosting control panel that allows you to manage websites, databases, and email servers. In this guide, we will walk you through\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-2065","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2065"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2065\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}