Activities

February 2010
M T W T F S S
« Jan   Mar »
1234567
891011121314
15161718192021
22232425262728

Enable ioncube module on Zend extesnion

These are the simplest way to enable “ioncube” module on zend extesnion. I’m using Centos5 and Php5.2.3 version.

1. Download ioncube from the web.

[root@rc-125 ioncube]# wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
[root@rc-125 ioncube]# tar -zxvf ioncube_loaders_lin_x86.tar.gz
[root@rc-125 ioncube]# cd ioncube
[root@rc-125 ioncube]# cp ioncube_loader_lin_5.2.so /usr/lib/extensions/no-debug-non-zts-20060613/

Then edit the php config file and added the follwoing lines at the end of the file.
zend_extension =/usr/lib/extensions/no-debug-non-zts-20060613/ioncube_loader_lin_5.2.so

[root@rc-125 ioncube]# php -v
PHP 5.2.9 (cli) (built: Sep 18 2009 01:17:26)
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                                .
[root@rc-125 ioncube]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

Error,
[root@rc-033 ioncube]# php -v
PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0

Solution,
Add the ioncube line just above the zend optimizer extension path like

zend_extension =/usr/lib/extensions/no-debug-non-zts-20060613/ioncube_loader_lin_5.2.so
zend_extension=/usr/lib/extensions/no-debug-non-zts-20060613/ZendOptimizer.so

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>