Can't get Litespeed to run PHP 7.x

Our cPanel/WHM server with Cloud Linux works well with LiteSpeed and PHP 5.x
We are trying to set up a test environment with PHP 7.0 as a start by using the MultiPHP Manager to set a subdomain for PHP 7.0 (ea-php70)

That subdomain's index.php echoes the PHP version as a test and shows it is still running PHP 5.6 when Litespeed is running.
If we switch the server to Apache, it runs PHP 7.x with no problems.

Our Hosting support report:
I think it's because the server is using Litespeed and it doesn't understand the cPanel:
Apache config:
<IfModule mime_module>
AddHandler application/x-httpd-ea-php70 .php .php7 .phtml
How do we get PHP 7 running with Litespeed please?


Last edited by a moderator:
Thanks Eric!
I will send that to our Hosting Support.

Our WHM seems to be: v78.0.24 and it looks like it will update to Version “80.0.11” soon.
For LiteSpeed I see:
Current Version: 5.2.7 (build 5)
Latest Build: 6
Latest Release: 5.3.8

Does that affect it?




Well-Known Member

Could you please upgrade to LSWS 5.3.8 ? 5.3 has feature to auto-detect PHP and apply configuration , on 5.2.X you may need to manually configure the PHP

Best regards,
Sorry for the delay in getting this done.
We have successfully upgraded to LSWS 5.3.8 and MultiPHP is now working fine, thanks! :)
We can now do full testing of our code under PHP 7.x.

I did have a problem with the upgrade process, however which I hope you can make better for next upgrade.

Our WHM was Version 80.0.11 I think .. it updated to v80.0.15 overnight again since the update.
When I actioned the update from 5.2.7 to 5.3.8 in WHM it showed only a set of rotating "dots".
- No text or other indication of progress or extent of the task.

At around 10pm I started the install and left it running .. checking from time to time.
..10.30, 11.00, 11.30, 12.00, 12.30 .. still "processing" ..
At 1am I called our Tech Support and they helped me check the update logs.
It had finished a while back but the WHM page still showed the rotating "dots".
- Not good. :(
I refreshed the page and saw the new version was installed!
I then did the WordPress Cache update.

Can you make the update progress more visible and advise when it is finished?


Hello qtwrk,

Yes .. all it showed for update progress was the "circle of dots", the same as when the WHM LiteSpeed page first builds.
- no way to see progress of the update.
And this never stopped, even after the update was complete, so I waited and waited for hours. :confused:




Well-Known Member

Thanks for the feedback , I have passed this into relevant developer.

I would also suggest to use command line to upgrade which may be smoother

you can also use -f to force reinstall , and -v to choose version , -b to choose build.

/usr/local/lsws/admin/misc/ -f -v 5.3.8 -b 3
Best regards,