Install ioncube loader


i just installed virtualmin successfully, all services are running fine. There was a small problem with proftpd but fixed by editing the hosts file

Anyway i am setting up this vps to run whmcs, however is required that is has ioncubeloader.

I cant find any guide online or on google that will help me in a newbie way how to install this on virtualmin

step by step will be highly appreciated



There’s actually an Install Script to install WHMCS onto both Virtualmin Pro as well as GPL. That will handle setting up ioncube for you.

You can access that by going into Install Scripts, and click on WHMCS.


BTW Eric, the installation said, You must purchase an WHMCS license before installing this script. is there a free version?or u can still install it without the license?


WHMCS is only available as a pay product, there isn’t a free version. I do believe they offer a refund within a certain timeframe if it doesn’t do what you want, though you’d need to verify that with the WHMCS folks :slight_smile:


No biggi. I was just curios of what that plugging was for. I managed to install ioncube with the instruction I typed above, actually, I use what I called there “the short version”. And all my websites that require ioncube work fine. Thank Eric,

Read the whole post before you do anything…

There are a few versions of the loader in the tar archive. Use the one that matches your PHP version.
Im in a Linux Ubuntu 10.10 Using Virtualmin:

  1. Download: sudo wget
  2. Extract: sudo tar zxvf ioncube_loaders_lin_x86.tar.gz
  3. Move to a permanent location: sudo mv ioncube /home/blablabla/public_html
  4. Move ‘’ to: /usr/lib/php5/20090626+lfs
  5. Move ‘20ioncube.ini’ to: /etc/php5/cgi/conf.d
  6. Add reference to your php.ini file: zend_extension = /home/blablabla/public_html/ioncube/
  7. Or: sudo pico /etc/php5/apache2/php.ini and add: zend_extension = /usr/local/lib/ioncube/
  8. Restart apache: sudo /etc/init.d/apache2 restart
  9. Test installation by visiting the URL:

NOTE: I also had to install Curl to use with a script and Paypal, here is how:

  • sudo apt-get install php5-curl
  • sudo service apache2 restart

Here are the Original Instructions to Install ioncube loader on Ubuntu 10.04 Lucid, PHP 5.3:

  1. Download ionCube loaders: sudo wget
  2. Extract: sudo tar zxvf ioncube_loaders_lin_x86.tar.gz (loader-wizard.tgz)
  3. Move to a permanent location: sudo mv ioncube /usr/local/lib/
  4. Add reference to your php.ini file: sudo pico /etc/php5/apache2/php.ini
  5. Restart apache: sudo /etc/init.d/apache2 restart
  6. Test installation:

Or here is my Short Version:
Copy the ionCube folder to your public_html folder
Copy: to: /usr/lib/php5/20090626+lfs (you may need to use ‘gksu nautilus’ command to do this)
Copy: 20ioncube.ini to: /etc/php5/cgi/conf.d
Add the following line to: Virtualmin -> Services -> PHP 5 Configuration, right below [PHP]: zend_extension = /home/blablabla/public_html/ioncube/