Install IonCube Loader On A Cpanel/WHM Server

If you’re running a webserver with Cpanel and need to use Zend’s IonCube Loader, you can easily install it by running this command via SSH:

/scripts/phpextensionmgr install IonCubeL oader

It will output something like this:

Updating md5sum list
Fetching http://httpupdate.cpanel.net/cpanelsync/easy/targz.yaml (0)….@75.127. 84.226……connected……receiving…100%……Done
Downloading tarball for IonCubeLoader
Fetching http://httpupdate.cpanel.net/cpanelsync/easy/targz/Cpanel/Easy/IonCubeL oader.pm.tar.gz.linux-generic-64 (0)….@75.127.84.226……connected……recei ving…2%…4%…6%…8%…10%…12%…15%…17%…19%…21%…23%…25%…28%.. .30%…32%…34%…36%…38%…41%…43%…45%…47%…49%…51%…54%…56%…5 8%…60%…62%…64%…67%…69%…71%…73%…75%…77%…80%…82%…84%…86% …88%…90%…93%…95%…97%…99%…100%……Done
Installing IonCubeLoader
Creating install directory at /usr/local/IonCube
Determining PHP version
Installing IonCube Loader binaries
Activating IonCube Loader extension in /usr/local/lib/php.ini
IonCube Loader extension activated

You can then check that it is indeed installed by entering this command via ssh:

php -v

Which will output something like this:

PHP 5.2.9 (cli) (built: Feb 23 2010 19:52:35)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with the ionCube PHP Loader v3.3.10, Copyright (c) 2002-2009, by ionCube Ltd.

There are plenty of other methods to install IonCube Loader, but this simple Cpanel script seems to be the easiest. Many scripts, like our media hotlinking protection script, make use of IonCube Loader to run Zend protected PHP source code.

Click here to view full size

Leave a Reply