Tutorial

How To Install IonCube Loader on Ubuntu 12.04

Published on June 3, 2013
Default avatar

By Bulat Khamitov

How To Install IonCube Loader on Ubuntu 12.04

Status: Deprecated

This article covers a version of Ubuntu that is no longer supported. If you are currently operate a server running Ubuntu 12.04, we highly recommend upgrading or migrating to a supported version of Ubuntu:

Reason: Ubuntu 12.04 reached end of life (EOL) on April 28, 2017 and no longer receives security patches or updates. This guide is no longer maintained.

See Instead:
This guide might still be useful as a reference, but may not work on other Ubuntu releases. If available, we strongly recommend using a guide written for the version of Ubuntu you are using. You can use the search functionality at the top of the page to find a more recent version.

Note: This article has been updated for Ubuntu 16.04.

IonCube is a PHP module extension that loads encrypted PHP files and speeds up webpages that are being displayed.

It is often required for a lot of PHP-based applications.

IonCube on 32-bit systems

This section is for PHP installed on a 32-bit system (for example: spinning up LAMP on Ubuntu 12.04 from Applications).

If you don't have a LAMP stack on your droplet, you can spin up a LAMP stack from our Applications:

First, you will need to download and extract the IonCube Loader PHP modules.

wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
tar xvfz ioncube_loaders_lin_x86.tar.gz

Then, you will have to copy the appropriate module to the PHP modules folder. To find that folder's path, run the following command

php -i | grep extension_dir

You will get the following output:

extension_dir => /usr/lib/php5/20090626+lfs => /usr/lib/php5/20090626+lfs

Now you should copy over the module to your PHP modules folder:

PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;")
sudo cp "ioncube/ioncube_loader_lin_${PHP_VERSION}.so" /usr/lib/php5/20090626+lfs/

You would then have to restart Apache2 or php5-fpm (if you're using nginx) for the module to be loaded:

service apache2 restart
service php5-fpm restart

To ensure that the module was correctly installed, create a file called test.php in /var/www with the following content:

<?php
echo var_export(extension_loaded('ionCube Loader') ,true);

Once you have done that, navigate to http://your-droplets-ip-address/test.php. It should output "true".

IonCube on 64-bit systems

If you have installed your own LAMP stack on a 64-bit Linux, you would need to download a 64 bit package:

wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xvfz ioncube_loaders_lin_x86-64.tar.gz

You should proceed with same steps as outlined above.

And you are all done!

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about us


About the authors
Default avatar
Bulat Khamitov

author

Still looking for an answer?

Ask a questionSearch for more help

Was this helpful?
 
10 Comments


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

HI!

This worked for me on Ubuntu 13.10, PHP-FPM and nginx!

  1. Download one of the following archives of Loaders for Linux x86-64 cd /usr/local sudo wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz sudo tar xzf ioncube_loaders_lin_x86-64.tar.gz

  2. Copy or move the Loader files in /usr/lib/php5/20121212 mv /usr/local/ioncube/* /usr/lib/php5/20121212/

  3. Load the ioncube loader in your php.ini Open your php.ini nano /etc/php5/fpm/php.ini

and add the following line zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.5.so

  1. Restart php-fpm service php5-fpm restart

PEACE!

this post needs to be updated, took 2 hours to get this to function

Note: If you are trying to install ionCube Loader on 14.04, you need to add the following to the php.ini file and restart apache:

zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.5.so

http://blogproudly.com/install-ioncube-loader-on-ubuntu-14/

For those of you struggling with getting ioncube loaded. Ignore all the other instructions and follow this blog,. It will save you an hour or two.

Damn, 2 hours and finally got it working on a Ubuntu 12 / 32 bits / zpanel droplet. The recibe (thanks to sriram.devang’s comment):

$ cd /etc/zpanel/panel
$ wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
$ sudo nano /etc/php5/apache2/conf.d/20-ioncube.ini

Paste:

zend_extension = /etc/zpanel/panel/ioncube/ioncube_loader_lin_5.3.so

ctrl+q (exit), save: Y

$ sudo service apache2 restart

That’s it. Uff…

I went through that process, getting true, out of php-check function, also www/ioncube/ setup-helper website says, that everything should work fine, but running my softaculous install.shell script, it keeps telling my, it cannot continue, because ioncubeloader is not installed. Any idea, why it is not recognized?

Hello

I am following

root@vps:~# tar xvfz ioncube_loaders_lin_x86-64.tar.gz ioncube/ ioncube/ioncube_loader_lin_5.0.so ioncube/ioncube_loader_lin_4.3.so ioncube/ioncube_loader_lin_4.2.so ioncube/ioncube_loader_lin_5.6.so ioncube/ioncube_loader_lin_5.3.so ioncube/ioncube_loader_lin_5.5_ts.so ioncube/ioncube_loader_lin_5.4.so ioncube/loader-wizard.php ioncube/ioncube_loader_lin_4.3_ts.so ioncube/ioncube_loader_lin_5.5.so ioncube/LICENSE.txt ioncube/ioncube_loader_lin_5.4_ts.so ioncube/ioncube_loader_lin_5.3_ts.so ioncube/ioncube_loader_lin_4.4.so ioncube/ioncube_loader_lin_4.4_ts.so ioncube/ioncube_loader_lin_5.2.so ioncube/USER-GUIDE.txt ioncube/ioncube_loader_lin_4.1.so ioncube/README.txt ioncube/ioncube_loader_lin_5.1_ts.so ioncube/ioncube_loader_lin_5.0_ts.so ioncube/ioncube_loader_lin_5.1.so ioncube/ioncube_loader_lin_5.6_ts.so ioncube/ioncube_loader_lin_5.2_ts.so root@vps:~# php -i | grep extension_dir extension_dir => /usr/lib/php5/20121212 => /usr/lib/php5/20121212 sqlite3.extension_dir => no value => no value root@vps:~# PHP_VERSION=$(php -r “echo PHP_MAJOR_VERSION.‘.’.PHP_MINOR_VERSION;” ) root@vps:~# sudo cp “ioncube/ioncube_loader_lin_${PHP_VERSION}.so” /usr/lib/php5 /20121212/ root@vps:~# service apache2 restart

  • Restarting web server apache2 [ OK ] root@vps:~# service php5-fpm restart php5-fpm stop/waiting php5-fpm start/running, process 4941 root@vps:~#

But not working please help.

The above did not work for me, on LAMP with debian, I used https://www.howtoforge.com/install-ioncube-loader-for-all-php-modes-cli-cgi-fcgi-and-fpm-on-debian-wheezy and it worked

Hi, i just started with digital ocean. i have installed LAMP, now i was going ahead with installing ioncube loader. when i execute command

php -i | grep extension_dir

i get output

/usr/lib/php5/20121212 => /usr/lib/php5/20121212

now it says to copy PHP modules like this

PHP_VERSION=$(php -r “echo PHP_MAJOR_VERSION.‘.’.PHP_MINOR_VERSION;”) sudo cp “ioncube/ioncube_loader_lin_${PHP_VERSION}.so” /usr/lib/php5/20090626+lfs/

I think i have to do it like this

PHP_VERSION=$(php -r “echo PHP_MAJOR_VERSION.‘.’.PHP_MINOR_VERSION;”) sudo cp “ioncube/ioncube_loader_lin_${PHP_VERSION}.so” /usr/lib/php5/20121212+lfs

what i get on executing the command is

i am unable to execute it correctly, can u please help me with the exact command

Here’s an up to date tutorial that actually works as at April 30 2015

http://blogproudly.com/install-ioncube-loader-on-ubuntu-14/

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Join the Tech Talk
Success! Thank you! Please check your email for further details.

Please complete your information!

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel