Install Zend Optimizer 3.3 on Customized PHP 5.2.3

| 3 Comments

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



3 Comments

I tried this but it doesn't show up in my php info.

Are you sure you don't need the following installation source (note x86_64 rather than i386) instead?

wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-x86_64.tar.gz

Worked for me.

Leave a comment

About Me

As a tech geek and life geek, I always like to share my experience to you, my readers.

David Yin

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.

Find recent content on the main index or look in the archives to find all content.

Archives

Subscribe

Ads