Can someone please help advise on this. Thank you!
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!
This comment has been deleted
To install IonCube, you first need to download and extract the files:
- wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
- tar xvfz ioncube_loaders_lin_x86-64.tar.gz
Next you will need to copy the files into your PHP extension directory. This will be different on different distros and with different PHP versions. So to find it, run:
- php -i | grep extension_dir
The output will be similar to:
extension_dir => /usr/lib/php5/20121212 => /usr/lib/php5/20121212
Now copy the IonCube file matching your PHP version to that directory. You can do so with:
- PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;")
- sudo cp "ioncube/ioncube_loader_lin_${PHP_VERSION}.so" /usr/lib/php5/20121212/
Then, in order for FPM to correctly find the extension, create a file named /etc/php5/fpm/conf.d/00-ioncube.ini with the contents:
zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.5.so
Finally, restart PHP-FPM using service php5-fpm restart
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.