Install PHP IonCube Loader for Nginx (Ubuntu)

We’re setting up a VoIP monitor with Nginx front-end. 

Using 32-bit Ubuntu 10.04.4 LTS:

# uname -rvm && cat /etc/issue
3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:15:33 UTC 2013 i686
Ubuntu 12.04.4 LTS \n \l

PHP v5.3 version details:

$ php5 -v
PHP 5.3.10-1ubuntu3.11 with Suhosin-Patch (cli) (built: Apr  4 2014 01:27:23) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

Download and install IonCude PHP extension for Nginx:

# cd /usr/lib/php5/20090626+lfs/
# wget http://www.voipmonitor.org/ioncube/i686/ioncube_loader_lin_5.3.so
# echo "zend_extension = /usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.3.so" \
> >/etc/php5/fpm/conf.d/ioncube.ini

Restart FastCGI process manager:

# service php5-fpm restart
$ php5 -v
PHP 5.3.10-1ubuntu3.11 with Suhosin-Patch (cli) (built: Apr  4 2014 01:27:23) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with the ionCube PHP Loader v4.5.2, Copyright (c) 2002-2014, by ionCube Ltd.

Leave a Reply

Your email address will not be published. Required fields are marked *