Install IonCube loader on OpenLiteSpeed! — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

Install IonCube loader on OpenLiteSpeed!

edited February 2020 in Tutorials

Deprecated: This guide is now deprecated. You can now install Ioncube loader for PHP 7.0,7.1,7.2,7.3 from PHP>Install extensions. Follow this instruction .

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.


This discussion has been closed.
CyberPanel Discord

Howdy, Stranger!

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