CyberHosting

Install IonCube loader on OpenLiteSpeed!

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

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

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!