Install IonCube loader on OpenLiteSpeed!

For PHP 5.3, 5.4, 5.5, 5.6 you can install ioncube loader directly from CyberPanel using this guide:

For PHP 7.0 and above you manually need to install ioncube loader.

Download Ioncube loader

Log in to your server via ssh and run these commands:


Copy extension to respective PHP versions

PHP 7.0

cp ioncube/ /usr/local/lsws/lsphp70/lib64/php/modules/

PHP 7.1

cp ioncube/ /usr/local/lsws/lsphp71/lib64/php/modules/

PHP 7.2

cp ioncube/ /usr/local/lsws/lsphp72/lib64/php/modules/

Create configuration files

PHP 7.0

echo "zend_extension = /usr/local/lsws/lsphp70/lib64/php/modules/" \
    > '/usr/local/lsws/lsphp70/etc/php.d/00-ioncube.ini'

PHP 7.1

echo "zend_extension = /usr/local/lsws/lsphp71/lib64/php/modules/" \
    > '/usr/local/lsws/lsphp71/etc/php.d/00-ioncube.ini'

PHP 7.2

echo "zend_extension = /usr/local/lsws/lsphp72/lib64/php/modules/" \
    > '/usr/local/lsws/lsphp72/etc/php.d/00-ioncube.ini'

Restart OpenLiteSpeed and you are good:

systemctl restart lsws

Have a good day.


Sign In or Register to comment.
Support CyberPanel CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!