As of this moment CentOS Web Panel(CWP) requires you to manually add the “--with-litespeed” flag to the configure command to build the LSAPI PHP needed to run PHP on LiteSpeed Enterprise. We are working with CWP to automate this process for users.
CWP has two different methods of assigning a PHP version/binary: through PHP Version Switcher or PHP Selector. Here we will explain how to compile PHP with LiteSpeed support using each method.
NOTE: Even if one has already compiled PHP, it will need to be recompiled with the ‘--with-litespeed’ flag before PHP will work with LiteSpeed Enterprise.
NOTE: LiteSpeed Enterprise does not work with PHP Version 4.4 or 5.2 unless manually compiled via the command line.
/home/username/public_html/.htaccess
: AddHandler application/x-httpd-php56 .php
(Replace 56
with the PHP version you built and wish to use.)