HomePage » WebServer » PHP » PHPOptimizers


PHP Optimizers


Well, some believe having compiled php code is a good idea. And they even need to support optimizers from different vendors. Question is how to install ionCube and ZendOptimizer at the same time.

Getting the stuff

ionCube Loader: http://www.ioncube.com/loaders.php
ZendOptimizer: http://www.zend.com/en/products/guard/downloads

Installing IonCube
Just extract the so files to some location

Installing ZendOptimizer
Unpack the archive, then run install

Configuring php.ini
Load ionCube at the very beginning of your php.ini file, right below [PHP]. The order of loading these modules are important. Otherwise, php will not work.
[PHP]
; ioncube after zend optimizer
zend_extension=/usr/lib/php/ioncube/ioncube_loader_lin_4.4.so


Zend should have done it for you already. If not, make sure these are in place:
[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so


Final steps
Restart apache and check the output of phpinfo()

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki