Eric Nagel

Eric Nagel

CTO, PHP Programmer, Affiliate Marketer & IT Consultant

Installing Zend Optimizer with IonCube Loader and Plesk

I have been, or can be if you click on a link and make a purchase, compensated via a cash payment, gift, or something else of value for writing this post. Regardless, I only recommend products or services I use personally and believe will be good for my readers.

I had to install the Zend Optimizer on my server the other day; I have a Plesk dedicated server with GoDaddy, which uses IonCube (I think for Plesk itself). Anyway, I came across some problems which I imagine are pretty common, so here are the solutions.

Getting the IonCube error?

The Loader must appear as the first entry in the php.ini file in Unknown on line 0

The answer can be found here.

I created a “zend.ini” file with the Zend lines from php.ini in there and placed it in /etc/php.d.

zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
zend_optimizer.version=3.3.0a
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

That fixed this error. Then I had a new error, “Fatal error: Unable to read X bytes in file.php on line 0”, which I found the answer to here.

So upload the files in binary. Now I have Plesk + ionCube + Zend Optimizer all installed together 😀

Leave A Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.