SSH into your server as 'root' user
#Make a backup of your php.ini before you proceed:
cp /etc/php.ini /etc/php.ini.backup
#Download the file. You need to create an account at zend.com before you can download this file. I used to have this file on my server, but that was ages ago....
http://www.zend.com/free_download/optimizer
tar zxvf ZendOptimizer.tar.gz
cd ZendOptimizer
./install
#You'll be asked the following questions, answer them with the following:
#Specify the location where to install Zend Optimizer:
/usr/local/Zend
#Confirm the location of your php.ini file:
/etc
#Are you using the Apache webserver?
Yes
#Specify the Apache configuration directory:
/etc/httpd/conf
#The install script should now detect the right Version of PHP.
Choose "Yes" to proceed.
#Specify the Apache bin directory:
/usr/sbin
#After that, your php.ini is automatically relocated to /usr/local/Zend/etc and a symlink is created.
#Do you want to restart Apache Webserver
Choose "No" (Iv had trouble with that script and it failed to restart apache, just restart apache manually)
#Restart Apache
service httpd restart
#Zend Optimizer is now installed..
To make Zend Optimizer available for sites in High Security mode on Ensim PRO, follow this which was posted by: Egoh
CODE
After normally installing Zend copy it to the high security site:
cp -r /usr/local/Zend/ /home/virtual/site#/fst/usr/local/Zend/
Now lets load it in:
pico -w /home/virtual/site#/fst/etc/php.ini
On the bottom paste this:
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.1.0
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.1.0
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
Save it and your done.
no apache restart needed.
cp -r /usr/local/Zend/ /home/virtual/site#/fst/usr/local/Zend/
Now lets load it in:
pico -w /home/virtual/site#/fst/etc/php.ini
On the bottom paste this:
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.1.0
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.1.0
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
Save it and your done.
no apache restart needed.