[Resolved] MIME and Custom PHP

Status
Not open for further replies.
#1
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.
Code:
AddHandler application/x-httpd-php54 .php
AddType application/x-httpd-php54 php
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 .
Code:
AddHandler application/x-httpd-php5 .php
AddType application/x-httpd-php5 php
but ForceType work and change version, but i need Addtype and Addhandler. any help ?
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#2
What hosting control panel are you using?
It might be an issue with current 4.2.21 release build due to internal changes. We got a report on Plesk.
 

mistwang

LiteSpeed Staff
#6
This issue should have been fixed in the latest build of 4.2.21, please force reinstall.

/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2.21
 
Status
Not open for further replies.
Top