Print
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:
http://www.zend.com/free_download/optimizer
#tar -vxzf ZendOptimizer-3.3.3-linux-glibc23-x86_64.tar.gz
#cd ZendOptimizer-3.3.3-linux-glibc23-x86_64
#./install.sh
Answer to those questions.
Add in your php.ini those lines:
[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.0
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so


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 http://pecl.php.net/get/APC-3.0.16.tgz
$ tar xzf APC-3.0.16.tgz
$ cd APC-3.0.16
$ phpize
$ ./configure --enable-apc --enable-apc-mmap \
--with-apxs=/usr/bin/apxs2 \
--with-php-config=/usr/bin/php-config
$ make
$ sudo make install
You need to add in /etc/php5/apache2/php.ini extension=apc.so . After that just restart apache:
$ sudo apache2ctl restart
Slackware Install:
# wget http://pecl.php.net/get/APC-3.0.19.tgz

# tar -vxzf APC-3.0.19.tgz

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

Note:

We use Hosting and VPS Hosting, from: www.star-host.org

We like and trust them.

Good prices, high security.