How to install ioncube loaders for Plesk PHP 7

Websavers Inc

Plesk 12.5 added the ability to use versions of PHP that were not included by your operating system vendor, so you can install PHP 5.6 and the newest PHP 7, which provides some great performance enhancements over the usual PHP 5.4 and PHP 5.5 found in CentOS 6 and CentOS 7 respectively.

The tricky part is knowing where to install custom modules to, if you ever need to. This guide will show you where PHP 7.0’s modules and config exists so you can install the ioncube loaders as found here.

Start by using the link above to download the loaders, then extract them. You’ll find one in the folder that was extracted called ioncube_loader_lin_7.0.so — copy it to the correct directory for Plesk’s PHP 7:

/opt/plesk/php/7.0/lib64/php/modules/ioncube_loader_lin_7.0.so

Then create the following file: /opt/plesk/php/7.0/etc/php.d/00-ioncube-loader.ini

And enter within:

; Enable ionCube Zend extension module
zend_extension=ioncube_loader_lin_7.0.so

(Be sure your editor does not automatically comment out the second line as well! Vim did this for me with default config)

Then simply run this to have Plesk force a restart of Plesk to load the new config file:

plesk bin php_handler --reread

Source

Did you find this article helpful? Leave a comment to let us know, and consider Websavers for your Shared Hosting or Canadian VPS Hosting services.

Jordan Schelew

Jordan has been working with computers, security, and network systems since the 90s and is a managing partner at Websavers Inc. As a founder of the company, he's been in the web tech space for over 15 years.
WS-Logo-only-image-large

About Websavers

Websavers provides web services like Canadian WordPress Hosting and VPS Hosting to customers all over the globe, from hometown Halifax, CA to Auckland, NZ.

If this article helped you, our web services surely will as well! We might just be the perfect fit for you.

Leave a Comment