• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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?
 
Found it! :/

The `sury-php.list` file in `/etc/apt/sources.list.d` was still faulty. I've now changed it from

`deb Index of /php/ bookworm main`

to

`deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] Index of /php/ bookworm main`

and then

`curl -fsSL https://packages.sury.org/php/apt.gpg | sudo tee /usr/share/keyrings/debsuryorg-archive-keyring.gpg > /dev/null`

Now everything's working. Oh man, it was a long night, so I overlooked it. Thanks, and have a nice Sunday!
 
Back
Top