For installing and integrating the Zend Optimizer with php on a Linux - ubunto vps with plesk panel, you can follow the given steps :
1) You can download the latest compatible version of Zend Optimizer archive in tar.gz format from the site
http://www.zend.com/products/guard/downloads
depending on the architecture of the server. (to get the architecture of your Linux vps, you can use command : uname -m)
2) Unzip (untar) the archive to extract files/folders in it.
Quote:
|
tar -zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
|
3) Copy the extracted Zend Optimizer ".so" file to /usr/local/ folder
(Select the compatible .so file depending on the version of php on your vps. For eg : php 4.X.X, php 5.X.X etc.)
Quote:
|
cd ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp
|
Quote:
|
cp ZendOptimizer.so /usr/local/
|
4) Edit the php.ini file and specify the full path of Zend Optimizer ".so" file to zend_extension.
(to get the absolute path of php.ini file on server, you can use command : php -i | grep php.ini)
Search for string "zend_extension" and add the line as follows in php.ini file :
Quote:
|
zend_extension=/usr/local/ZendOptimizer.so
|
(you need to add the above line under "zend.ze1_compatibility_mode = Off" line and followed by IonCube Loader extension entry.)
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = Off
zend_extension=/usr/local/ioncube_loader_lin_5.2.so
zend_extension=/usr/local/ZendOptimizer.so
5) restart apche service
Quote:
|
/etc/init.d/apache2 restart
|
6) confim the Zend Optimizer php module by command :
You should get the output similar to following :
============
PHP 5.2.4-2ubuntu5.10 with Suhosin-Patch 0.9.6.2 (cli) (built: Jan 6 2010 22:01:14)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with the ionCube PHP Loader v3.3.15, Copyright (c) 2002-2010, by ionCube Ltd., and
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
============
Thank You!!
-------------
Regards,
Alec
VPS Support Team