Install php ioncube extension on Mac OS

1. Go to http://www.ioncube.com/loaders.php, and download the tar, tar.bz2 or zip package for OS X versions(either 32 bits or 64 bits), and decompress it.

2. Find out the php version you are using by this command line.

$ php -v
PHP 5.4.24 (cli) (built: Jan 19 2014 21:32:15) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with Xdebug v2.2.4, Copyright (c) 2002-2014, by Derick Rethans

3. Copy the ioncube_loader_dar_5.4.so file to the php extension library.

sudo cp ~/download/ioncube/ioncube_loader_dar_5.4.so /usr/lib/php/extensions/no-debug-non-zts-20100525/

4. Open /etc/php.ini or whereever your php.ini resides.

zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20100525/ioncube_loader_dar_5.4.so

If you are not sure where your php.ini file is run this command line

php -i | grep "php.ini"

5. Restart apache.

sudo /usr/sbin/apachectl restart

6. Now do a php -v you should see ionCube is loaded.

$ php -v
PHP 5.4.24 (cli) (built: Jan 19 2014 21:32:15) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd., and
    with Xdebug v2.2.4, Copyright (c) 2002-2014, by Derick Rethans

Search within Codexpedia

Custom Search

Search the entire web

Custom Search