Page 3 of 3

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Tue Apr 25, 2023 11:28 pm
by Messiah
Error: php-fpm pool doesn't exist
There is a funny piece of the code in both VestaCP and myVesta.
v-delete-web-domain-backend and prepare_web_backend() of domain.sh contain

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
It will fail to find the proper directory in case 2 different FPMs are installed simultaneously in case WEB_BACKEND='php-fpm'. The `pool` variable will contain 2 lines separated by \n.
Does anybody have any ideas or ready solution how to make multiple php fpm work with Vesta correctly?

I do not accept the rewriting of half of Vesta code, replacing php* with php7 to use specific php fpm for all domains and some other to bee changed manually in the configs etc.