• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

Question How to install PHP 5.6.40 on Plesk 18.0.58 and Debian 12.4?

Thank you. I have installed everything, but it still does not appear.
I have gone to Plesk Service Manager and
PHP-FPM 5.6.40Not configured
 
I'm going to try using a domain. But in the php.ini of php 5.6.40 the newly installed extensions are not active
 
@alb_cg

As long as no domain is using the new PHP shared FPM handler, it will show "Not configured" under "Tools & Settings -> Services." This is completely fine.

Please provide a screenshot of "Tools & Settings -> PHP Settings" and another screenshot of "Tools & Settings -> PHP Settings -> PHP-FPM 5.6.40."
 
Hello, I tried to install PHP 5.6 today. I executed the following commands.
this should work (for Debian 12):

1) adding deb.sury.org repo
Code:
curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
dpkg -i /tmp/debsuryorg-archive-keyring.deb
sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'

2) installing PHP 5.6 (FPM)
Code:
apt update
apt install php5.6-fpm

3) registering PHP 5.6 (FPM) in Plesk
Code:
plesk bin php_handler --add -displayname 5.6.40 -path /usr/sbin/php-fpm5.6 -phpini /etc/php/5.6/fpm/php.ini -type fpm -id deb-php56-fpm -clipath /usr/bin/php5.6 -service php5.6-fpm -poold /etc/php/5.6/fpm/pool.d
unfortunately, I've been getting the following message after "apt update" ever since.
Code:
N: File "plesk.list.back" in directory "/etc/apt/sources.list.d/" is ignored because it has an invalid file extension.
E: Conflicting values set for option Signed-By regarding source https://packages.sury.org/php/ bookworm: /usr/share/keyrings/deb.sury.org-php.gpg !=
E: The list of sources could not be read.

where is the problem?
 
Back
Top