Install Zend Optimizer

From HostThyself

Jump to: navigation, search

The Zend Optimizer is a PHP code optimizer by Zend. It is usually required to support programs with encrypted PHP source files.

The lastest can be downloaded from here.

The following sections describe how to install the Zend Optimizer on a CentOS server with standard httpd and php package.

Untar downloaded package. Change into the uncompressed folder and run the installation with

./install

Edit the php.ini setting

vi /usr/local/Zend/etc/php.ini

Change the following:

zend_optimizer.disable_licensing=1

[edit] Troubleshooting

If you get the following error in your apache error log

/usr/local/Zend/lib/ZendExtensionManager.so: 
failed to map segment from shared object: Permission denied

Try the following

cd /usr/local/Zend/lib/
chcon -R --reference=/usr/sbin/httpd *.so

Restart apache

service httpd restart

References:

Personal tools