Enable CloudLinux PHP lsapi
CloudLinux provides high performance PHP module lsapi. It is a replacement for suphp available on cpanel servers. lsapi module is a based on LiteSpeed Technologies API for PHP.
To enable lsapi in CloudLinux Cpanel Server, go to
WHM > EasyApache 4
Provision profile
CloudLinux + All PHP Options + OpCache + mod_lsapi
![CloudLinux lasapi php](https://serverok.in/wp-content/uploads/2018/12/whm-easyapache-lsapi.png)
Click “Provision” and wait until the software is updated.
Now you need to set lsapi as default PHP handler. To do this, go to
WHM > MultiPHP Manager
![WHM Multi PHP Manager](https://serverok.in/wp-content/uploads/2018/12/whm-multi-php-manager.png)
Click on “PHP Handlers”.
On Next page, you can set handler for each PHP versions.
You can set PHP handler to lsapi gloabally using following command
/usr/bin/switch_mod_lsapi --enable-global
Once you run it, all PHP version handlers will get chanegd to lsapi.
![](https://serverok.in/wp-content/uploads/2018/12/whm-lsapi.png)
If you check PHP info, you will see Server API listed as LiteSpeed.
![LiteSpeed Server API](https://serverok.in/wp-content/uploads/2018/12/server-api-litespeed.png)
Back to lsapi