Cara Install IonCube Loader on OpenLiteSpeed CyberPanel mungkin tidak begitu penting, karena CyberPanel sendiri sudah menyediakan fitur PHP Extension di adminnya, yaitu fitur untuk menginstall berbagai maca ekstensi php dengan mudah. Namun tidak tau kenapa jika saya install melalui admin file php malah dianggap corrupt padahal tidak ada masalah. Maka saya buatkan tutorial ini yiatu proses instal ioncube manual di cyberpanel.
Langsung saja ke caranya.
1. Login ke SSH, dan jalankan perintah berikut untuk mengunduh paket ioncube.
1 2 |
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip unzip ioncube_loaders_lin_x86-64.zip |
2. Copy ektensi ke masing-masing versi PHP.
PHP 5.6
1 |
cp ioncube/ioncube_loader_lin_5.6.so /usr/local/lsws/lsphp56/lib64/php/modules/ioncube_loader_lin_5.6.so |
PHP 7.0
1 |
cp ioncube/ioncube_loader_lin_7.0.so /usr/local/lsws/lsphp70/lib64/php/modules/ioncube_loader_lin_7.0.so |
PHP 7.1
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
1 |
cp ioncube/ioncube_loader_lin_7.2.so /usr/local/lsws/lsphp72/lib64/php/modules/ioncube_loader_lin_7.2.so |
PHP 7.3
1 |
cp ioncube/ioncube_loader_lin_7.3.so /usr/local/lsws/lsphp73/lib64/php/modules/ioncube_loader_lin_7.3.so |
3. Menambahkan konfigurasi ke php.ini
PHP 5.6
1 2 |
echo "zend_extension = /usr/local/lsws/lsphp56/lib64/php/modules/ioncube_loader_lin_5.6.so" \ > '/usr/local/lsws/lsphp56/etc/php.d/00-ioncube.ini' |
PHP 7.0
1 2 |
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
1 2 |
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
1 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' |
PHP 7.3
1 2 |
echo "zend_extension = /usr/local/lsws/lsphp73/lib64/php/modules/ioncube_loader_lin_7.3.so" \ > '/usr/local/lsws/lsphp73/etc/php.d/00-ioncube.ini' |
4. Restart OpenLiteSpeed dengan perintah berikut.
1 |
systemctl restart lsws |
Selamat mencoba.