Error generating config for multiple versions of php ?
short description
With multiple versions of php, the apache2 config is created partially as for the default version of php. FastCgiExternalServer = ... php7.3-fpm instead of php5.6-fpm SetHandler = php7.3-fpm instead of php5.6-fpm The possibility of several versions of PHP is not taken into account, the system version is always used.
Action php-fcgi /php-fcgi virtual
Alias /php-fcgi /var/www/clients/client23/web30/cgi-bin/php-fcgi-*-82-builddemo.klondike-studio.ru
FastCgiExternalServer /var/www/clients/client23/web30/cgi-bin/php-fcgi-*-82-builddemo.klondike-studio.ru -idle-timeout 300 -socket /var/lib/php7.3-fpm/web30.sock -pass-header Authorization -pass-header Content-Type
</IfModule>
<IfModule mod_proxy_fcgi.c>
#ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ unix:///var/lib/php7.3-fpm/web30.sock|fcgi://localhost//var/www/clients/client23/web30/web/$1
<Directory /var/www/clients/client23/web30/web>
<FilesMatch "\.php[345]?$">
SetHandler "proxy:unix:/var/lib/php7.3-fpm/web30.sock|fcgi://localhost"
</FilesMatch>
</Directory>
</IfModule>
correct behaviour
What should happen instead?
- FastCgiExternalServer = ... php5.6-fpm
- SetHandler = php5.6-fpm
environment
- server:apache2
- default php 7.3
- php version of the site 5.6 PHP-FMP
- ISPConfig version: 3.1.13
- Server OS: debian 9
- /usr/local/ispconfig/server/conf/vhost.conf.master line: 376
proposed fix
If the site has a great version of PHP, then take another variable.
Edited by Viktor