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: http://docs.cyberpanel.net/doku.php?id=php-extensions

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:

wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip
unzip ioncube_loaders_lin_x86-64.zip

Copy extension to respective PHP versions

PHP 7.0

cp ioncube/ioncube_loader_lin_7.0.so /usr/local/lsws/lsphp70/lib64/php/modules/ioncube_loader_lin_7.0.so

PHP 7.1

cp ioncube/ioncube_loader_lin_7.1.so /usr/local/lsws/lsphp71/lib64/php/modules/ioncube_loader_lin_7.1.so

PHP 7.2

cp ioncube/ioncube_loader_lin_7.2.so /usr/local/lsws/lsphp72/lib64/php/modules/ioncube_loader_lin_7.2.so

Create configuration files

PHP 7.0

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

PHP 7.1

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

PHP 7.2

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

Restart OpenLiteSpeed and you are good:

systemctl restart lsws

Have a good day.

Comments

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!