Parent Category: Tutorials
Hits: 11024


Zend Optimizer is a free application that allows PHP to run files encoded by Zend Guard. Zend Optimizer greatly enhances the performance of PHP applications.

The Zend Optimizer goes over the code generated by the standard Zend run-time compiler and optimizes it for faster execution. The standard Zend run-time compiler used by PHP is indeed very fast, generating code that is usually 2 to 10 times faster. But an application that uses Zend Optimizer can execute scripts another 40% to 100% faster.
Here are the steps for instaling it.
You must be root in order to install it.
Get optimizer form here:
#tar -vxzf ZendOptimizer-3.3.3-linux-glibc23-x86_64.tar.gz
#cd ZendOptimizer-3.3.3-linux-glibc23-x86_64
Answer to those questions.
Add in your php.ini those lines:

Restart apache:
/sbin/service httpd restart
You should have:
# php -v | grep Optimizer
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

The Alternative PHP Cache (APC) is a free, open, and robust framework for caching and optimizing
PHP intermediate code. It's an PECL extension which shares the packaging and distribution system
with its sister, PEAR.
Ubuntu/Debian install:
First you need to install dependencies for compilation:
$ sudo aptitude install apache2-dev php5-dev build-essential
Get current version of apc and install it
$ wget
$ tar xzf APC-3.0.16.tgz
$ cd APC-3.0.16
$ phpize
$ ./configure --enable-apc --enable-apc-mmap \
--with-apxs=/usr/bin/apxs2 \
$ make
$ sudo make install
You need to add in /etc/php5/apache2/php.ini . After that just restart apache:
$ sudo apache2ctl restart
Slackware Install:
# wget

# tar -vxzf APC-3.0.19.tgz

# cd APC-3.0.19
# which apxs
/usr/sbin/apxs# which php-config
# ./configure --enable-apc --enable-apc-mmap --with-apxs=/usr/sbin/apxs --with-php-config=/usr/bin/php-config
#checkinstall --fstrans=no -S -y
#installpkg APC-3.0.19-i386-1.tgz
Add in /etc/httpd/php.ini and reload apache:
# /etc/rc.d/rc.httpd restart
Now a phpinfo(); should show you a new apc section.


We use Hosting and VPS Hosting, from:

We like and trust them.

Good prices, high security.