I have a custom server template that gets applied when I create new domains. This PHP stuff is automatically getting inserted from somewhere into the Apache configuration files...
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php5.6
AddHandler fcgid-script .php7.0
AddHandler fcgid-script .php7.1
AddHandler fcgid-script .php7.2
AddHandler fcgid-script .php7.3
FCGIWrapper /home/associatedappraisersofww/fcgi-bin/php7.0.fcgi .php
FCGIWrapper /home/associatedappraisersofww/fcgi-bin/php5.6.fcgi .php5.6
FCGIWrapper /home/associatedappraisersofww/fcgi-bin/php7.0.fcgi .php7.0
FCGIWrapper /home/associatedappraisersofww/fcgi-bin/php7.1.fcgi .php7.1
FCGIWrapper /home/associatedappraisersofww/fcgi-bin/php7.2.fcgi .php7.2
FCGIWrapper /home/associatedappraisersofww/fcgi-bin/php7.3.fcgi .php7.3
...but I know know how or where the above is being added from? Maybe from /usr/share/webmin/virtual-server/php-lib.pl
?
I want to add the following to the above automatically inserted php stuff. As you can see it's also php version specific... so how can made it so the php version gets updated when/if the php version is changed in virtualmin?
SetHandler "proxy:unix:/var/run/php/php7.0-fpm.sock|fcgi://localhost"
My system...
- Ubuntu 18.04 LTS
- PHP 5.6, 7.0, 7.1, 7.2, 7.3
- Apache 2.4.37
- Using http 2.0