Symptoms
-
LiteSpeed extension is installed, Plesk is running with active LiteSpeed Web Server
-
PHP-FPM is set at Domains > example.com > PHP Settings
-
Changes in PHP Settings are not reflected on the page Domains > example.com > PHP Settings > View the phpinfo() (other parameters are shown)
-
Website with Magento CMS shows the following message while the proper or later PHP version is set in Plesk at Domains > example.com > PHP Settings:
Magento supports PHP 7.0.2, 7.0.4, and 7.0.6 or later. Please read Magento System Requirements
- The following record might be shown in the
/var/www/vhosts/system/example.com/logs/error_log
file:MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!
Cause
LiteSpeed Web Server does not support PHP-FPM configuration in the Plesk interface.
Resolution
Since LiteSpeed extension does not support FPM try the following solution:
-
Go to Domains > example.com > PHP Settings
-
Switch to switch PHP to FastCGI application:
Additional information
Refer to LiteSpeed Official documentation for more details on PHP support: Using PHP with Plesk and LSWS.
The extension is developed by LiteSpeed Technologies, for assistance with the configuration of LiteSpeed + PHP contact the LiteSpeed Support Team.
LiteSpeeed documentation: Plesk Mismatched PHP Configuration