Install Zend Optimizer 3.3 on Customized PHP 5.2.3

| | Comments (0) | TrackBacks (0)

Now PHP 5.2.3 is installed on Dreamhost. If you don't know how to do it, just refer to my previous post, Install customized PHP5 on Dreamhost.

Let us see how to add Zend Optimizer support on your own PHP installation.

1) Go to Zend official site. http://www.zend.com/

2) Find and download the Zend Optimizer 3.3. You may need sign an account to download it. To install it on Dreamhost, you may choose Linux x86 (32bit) (TAR.GZ) | 9.74MB | 3.3.3 package.

3) I suggest to download it through SSH.
wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz

4) Decompress it.

tar xvfz ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz

5) cd ZendOptimizer-3.3.3-linux-glibc23-i386

6) We use complied ZendOptimizer so file.

cd data/5_2_x_comp

7) There are two files.
ZendOptimizer.so is the complied file.

8) Copy this file to the PHP installation folder.

cp ZendOptimizer.so ~/jiuan4/php5/lib/php/

Now ZendOptimizer 3.3.3 installation finished.

9) To enable ZendOptimizer, you need to edit your domain's php.ini file.

cd php5/etc/php5/youdomainname

10) Edit php.ini file.

vi php.ini

11) Go to the end of file, add the following.

; Zend Optimizer options zend_optimizer.optimization_level=15 zend_extension=/home/yourusername/php5/lib/php/ZendOptimizer.so

12) Make a phpinfo() file to test it.
You will see the following screen.
zendoptimizer.gif


Categories

,

0 TrackBacks

Listed below are links to blogs that reference this entry: Install Zend Optimizer 3.3 on Customized PHP 5.2.3 .

TrackBack URL for this entry: http://www.yinfor.com/mtcgi/mt-tb-trackback.cgi/2148

Leave a comment

Earn $$ with WidgetBucks!
Earn $$ with Bidvertiser!
DreamHost!
Sponsored Review!

Online Tools

About this Entry

This page contains a single entry by David Yin published on May 9, 2008 1:50 AM.

Install customized PHP5 on Dreamhost was the previous entry in this blog.

Change theme to improve user experience is the next entry in this blog.