Welcome to InviteVPS.com home of cheap linux vps powered by SolusVM panel. Be sure to check out our latest SPECIALS HERE. Hope you enjoy your stay with us!
Live Support

Portal Home > Knowledgebase > Tutorials > Install IonCube on CentOS VPS

Install IonCube on CentOS VPS

This post will explain how to install IonCube Loader, a common PHP encoder. If your VPS has cPanel installed, IonCube setup is easy:

1. From WHM, run the EasyApache tool. Enable IonCube Loader in the “Tweak Settings” configuration. Let Apache and PHP recompile. Done!


2. Login to your VPS via SSH as the root user. Run the following command:

/scripts/phpextensionmgr install IonCubeLoader



1. Download IonCube files to your VPS using wget or FTP:

wget http://www.ioncube.com/loader_download.php

2. Decompress the package:

tar -zxvf ioncube_loaders.tar.gz

3. cd ioncube

4. Copy ioncube-install-assistant.php to a web directory (default for CentOS is /var/www/html, or /var/www in Debian) and navigate to it with your browser:

cp ioncube-install-assistant.php /var/www/html/

Then navigate to it, ex. http://xx.xx.xx.xx/ioncube-install-assistant.php (replace xx.xx.xx.xx with your IP address or domain).

You should see a message like this:

Analysis of your system configuration shows:

PHP Version 4.3.3
Operating System Linux
Threaded PHP No
php.ini file /usr/local/lib/php.ini
Required Loader ioncube_loader_lin_4.3.so

5. Move the IonCube directory to a permanent location:

cd ..
mv ioncube /usr/local

6. Find your php.ini file, then edit it:

find / -name php.ini

vi /usr/local/lib/php.ini

At the bottom of the file, paste:

zend_extension = /usr/local/ioncube/ioncube_loader_lin_4.3.so

7. Save the changes by entering : (colon), then typing wq and enter.

8. Restart Apache to load the new extension:

/etc/init.d/httpd restart

IonCube Loader should now be installed. You can double-check by creating a file called info.php in /var/www/html/ with the following content:

 <? phpinfo(); ?>

Save the file and access it at http://xx.xx.xx.xx/info.php. You should see a section similar to:

Additional Modules
Module Name ionCube Loader

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read