curl -sSL https://packages.sury.org/php/README.txt | bash -x
apt update
vim /etc/apt/preferences.d/00packages.cloudpanel.io.pref
[...]
Pin-Priority: 500
apt update
apt install -y php5.6-common php5.6-fpm php5.6 php5.6-zip php5.6-soap php5.6-opcache php5.6-mysql php5.6-cli php5.6-gd php5.6-curl php5.6-xsl php5.6-imap php5.6-intl php5.6-sqlite3 php5.6-bcmath php5.6-mbstring php5.6-readline
vim /etc/apt/preferences.d/00packages.cloudpanel.io.pref
[...]
Pin-Priority: 1000
apt update
cp /etc/php/8.1/fpm/pool.d/default.conf /etc/php/5.6/fpm/pool.d/default.conf
vim /etc/php/5.6/fpm/pool.d/default.conf
[...]
listen = 127.0.0.1:10000
[...]