lsphp add php version to hander name (TEMPLATES)

Version 1.5


This should only affect servers with php#_mode=lsphp and where there are 2 php versions being used.. and the verions are swapped. 2 new tokens: LSPHP1_RELEASE=55 LSPHP2_RELEASE=54 for example. By default these tokens are empty: "" but if php#_mode=lsphp in the CB2 options.conf, then the respective LSPHP#_RELEASE token is set. Affects: virtual_host2.conf virtual_host2_sub.conf virtual_host2_secure.conf virtual_host2_secure_sub.conf Old code: |*if HAVE_PHP1_CLI="1"| <FilesMatch ".php$"> AddHandler application/x-httpd-php .php </FilesMatch> |*endif| |*if HAVE_PHP2_CLI="1"| <FilesMatch ".php|PHP2_RELEASE|$"> AddHandler application/x-httpd-php .php|PHP2_RELEASE| </FilesMatch> |*endif| New code: |*if HAVE_PHP1_CLI="1"| <FilesMatch ".php$"> AddHandler application/x-httpd-php|LSPHP1_RELEASE| .php </FilesMatch> |*endif| |*if HAVE_PHP2_CLI="1"| <FilesMatch ".php|PHP2_RELEASE|$"> AddHandler application/x-httpd-php|LSPHP2_RELEASE| .php|PHP2_RELEASE| </FilesMatch> |*endif|

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