I done this with LSWS many times and it always worked, i compiled multiple PHP in server and added them to External Apps and also Script Handler as guide here:
https://www.litespeedtech.com/suppo...unning-multiple-versions-with-a-control-panel
i done these steps before and had no problem. by using AddType and AddHandler in.htaccess file i was able to switch between different version very fast. just on click. i made same setup on a new server but AddType and AddHandler dont affect on LSWS.
in normal operation it should run PHP as ver 5.4 but still run it as 5.3 , the 5.3 is default i think. when 5.3 remove, it show error 403 .
but ForceType work and change version, but i need Addtype and Addhandler. any help ?
https://www.litespeedtech.com/suppo...unning-multiple-versions-with-a-control-panel
i done these steps before and had no problem. by using AddType and AddHandler in.htaccess file i was able to switch between different version very fast. just on click. i made same setup on a new server but AddType and AddHandler dont affect on LSWS.
Code:
AddHandler application/x-httpd-php54 .php
AddType application/x-httpd-php54 php
Code:
AddHandler application/x-httpd-php5 .php
AddType application/x-httpd-php5 php
Last edited by a moderator: