EasyApache4 LiteSpeed, PHP missing handler

#1
Hello,

We recently upgraded to cPanel 58 build 12, and migrated from EasyApache 3 to EasyApache4.

We're using LiteSpeed 5.0.19.

The EasyApache 4 upgraded without errors, we then used MultiPHP Manager for WHM to set PHP 7.0.9 as the server default.

We were prompted with the "LiteSpeed EA3 to EA4 One Click Upgrade" as outlined here:
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cpanel:easyapache4-config

When trying to use the LiteSpeed "Build Matching LSPHP" it reported:
Found Apache PHP binary at /usr/local/bin/php Version is 7.0.9 /usr/local/lsws/fcgi-bin/lsphp7 does not exist!
Along with:
ERROR -- Cannot find php build directory for cPanel, please run EasyApache first to build PHP with correct options for Apache.

Note: EasyApache had been rebuilt 3 times each with the same error.

Then used the following and manually built PHP:
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:lsapi

When prompted which modules to utilize, I outlined the exact ones that were outlined in EA4's configuration.

After doing this if you click the "Build Matching LSPHP" it showed the configurations were identical, however, when trying to pull up websites they all show error 403.

From our log file in /var/log/apache2/error_log we see the following from LiteSpeed:

2016-08-07 21:24:11.459 [ERROR] [173.245.55.239:63191] MIME type [application/x-httpd-php70] for suffix '.php' does not allow serving as static file, access denied!

Any assistance is greatly appreciated!

Thanks!
 

mistwang

LiteSpeed Staff
#2
The one click update should take care of everything for you, there is no need to build matching PHP with EA4, all are ready-to-use rpm packages.

You can try updating to the latest the 5.0.19 build see if it can take care of everything.
/usr/local/lsws/admin/misc/lsup.sh -f -v 5.0.19

If it does not work, and you are using a default installation, the quickest way to fix the installation is to uninstall LSWS then reinstall.
 
Top