Easy PHP 5.3 installation (Ubuntu)

I’ve been searching around for deb packages for PHP 5.3 for Ubuntu for a while, but not found a solution close to the ease of the original (Debian style) packages with a separate deb package for each extension. I’ve used Dotdeb packages in the past, however there are often small issues with these due to missing libraries (usually due to them being compiled on Debian which has older versions of some libraries than Ubuntu) and there are also some posts on their site in the PHP 5.3 section indicating that there are issues installing these packages on Ubuntu.

The EASY solution: Zend Server Community Edition


1. Download the ‘Universal Repository Script’ (ZendServer-4.0.5-RepositoryInstaller-linux.tar.gz) from the Zend website.
2. tar xjf ZendServer-4.0.5-RepositoryInstaller-linux.tar.gz
3. cd ZendServer-RepositoryInstaller-linux
4. sudo ./install_zs.sh 5.3 ce

This will add the Zend repositories to apt and start the installation.

Fix dependency with Ubuntu 9.10 RC (and possibly earlier versions) as Ubuntu 9.10 uses a later version of libkrb53 than Zend packages:

1. Download the Lenny version from Debian for your architecture:

2. Install via dpkg -i

Rerun the Zend installer above after doing this.

Install extra PHP extensions:

sudo apt-get install php-5.3-extra-extensions-zend-server

Access Zend Server to manage PHP:

HTTP: http://localhost:10081/ZendServer
HTTPS: https://localhost:10082/ZendServer

You will probably notice that tonnes of extensions are installed by default, to enable/disable them go to:
Server Setup -> Extensions
Click restart PHP in the bottom right to restart the web server.

To change PHP ini settings go to:
Server Setup -> Directives
Click restart PHP in the bottom right to restart the web server.

As Zend are using Apt PHP packages will be kept up to date as long as you update your system regularly (something which is distinctly lacking in Ubuntu/Debian).

Zend Server also includes script caching by default which should give speed improvements to executing PHP code.

More info on installation can be found here (note this has instructions for PHP 5.2):


Leave a Reply