Install Zend Optimizer for php 5.2 and earlier

Zend Optimizer has been updated and renamed to Zend Guard since PHP 5.3.

However, you might still have some older projects running PHP 5.2, where Zend Optimizer is still needed.

Here’s a small how to install for Ubuntu 12.04 LTS with PHP 5.2.

First of all, download Zend Optimizer 3.3.3 through this link: Zend

Unpack it on your server with this command:

Navigate into the data directory, and correct php version, eg:

copy the so file to the php path:

Enable zend optimizer throught /etc/php5/conf.d by typing:

Enable Zend optimizer by reloading apache

Check if Zend Optimizer is enabled by:

 

Install PHP 5.4 on Ubuntu 12.04 LTS

This post shows you how to install PHP 5.4 on Ubuntu 12.04 LTS.

To install PHP 5.4, I asked my good friend Google who is maintaining a PHP PPA (Personal Package Archive) for Ubuntu 12.04 LTS.

Ondřej Surý is one of the people who does this. Since Ondrey is pretty active on developing this stuff, this is one of the repo’s to follow 🙂 (he also accepts donations for his hard work)

Now, via SSH, you can simply install PHP 5.4 by isuing the following command:

If you get an error the add-apt-repository is not available on your system:

Et voila… your server is now running PHP 5.4, which is said to be 25% faster than PHP 5.3.