Php selector can pick "Off" for second php instance

Version 1.53


If you know you have no use for the 2nd php instance, you can now set as "Off" for a given domain: User Level -> Domain Setup -> -> PHP Version Selector Where "Second PHP" can be set to "Off", which is saved as: php2_select=0 in the: /usr/local/directadmin/data/users/username/domains/ The effect of this is that the VirtualHost will not have PHP2.. so things would end up being set like: HAVE_PHP2_FPM=0 HAVE_PHP2_FCGI=0 HAVE_PHP2_CLI=0 etc.. The main point of this is to allow for the removal of an extra php-fpmXX.conf file, eg: /usr/local/directadmin/data/users/username/php/php-fpmXX.conf if they're not needed. During an httpd.conf rewrite, the php-fpmXX.conf files are re-written. Any domain with the 2nd php instance set to 'Off' won't have the php loaders added into the httpd.conf. If DA didn't count any using a specific php version, it will be fully shut off by removal of that php-fpmXX.conf file. The ~username access for <Directory "/home/user/public_html"> is controlled by the settings from the main/default domain in the account, so these php loaders will also be reduced if php is "Off".

Interested to try DirectAdmin? Get a 30-day Free Trial!