How to install multi PHP versions

Messiah
Posts: 7
Joined: Fri Nov 12, 2021 8:28 pm

Unfortunately, it works only for nginx + apache config.
If installing (manually) some other php version from Sury package for Nginx + fpm config multiple folders will be found using
/etc/php/*/fpm/pool.d
pattern, thus the code
of
v-delete-web-domain-backend
and
prepare_web_backend() of domain.sh
like

Code: Select all

pool=$(find -L /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
if [ ! -e "$pool" ]; then
    echo "php-fpm pool doesn't exist"
fi
will fail to find the file and the error
Error: php-fpm pool doesn't exist
will occure. Any ideas how to install multiple FPM versions without Apache and not manually and not rewritng half of the panel code and web server configs? :?:

Tags:
User avatar
myVesta
Site Admin
Posts: 825
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 5 times
Been thanked: 6 times

Maybe this can help - viewtopic.php?t=710
But it's not for multiple but for one another version.
psp50
Posts: 1
Joined: Thu May 25, 2023 11:33 am

is old php version change or it will add new web template?
Please help.
User avatar
myVesta
Site Admin
Posts: 825
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 5 times
Been thanked: 6 times

psp50 wrote: Thu May 25, 2023 11:35 am is old php version change or it will add new web template?
Please help.
New templates will be added.
Post Reply