You are reading

Install PHP-FPM 5.3.2 on Ubuntu 10.04 (Lucid Lynx)

Posted: May 31, 2010 | By: TJ | In Technology | No comments yet

A few weeks ago, we went through installing PHP-FPM on Ubuntu 9.10 (Karmic Koala). Now that (mt) Media Temple began offering Ubuntu 10.04 (Lucid Lynx) on their (ve) servers, I figured it was time to see if the installation process for Lucid was the same. It isn’t but fortunately, it’s even easier.

If you’re working on a new (ve) server, we’ll only need 1 dependency met before we get started.

$ aptitude install python-software-properties

This package provides an abstraction of the used apt repositories. It allows you to easily manage your distribution and independent software vendor software sources. Since we’re going to be using a Launchpad PPA, we’ll need this tool to make adding packages easier. Personal Package Archives (PPA) allow you to upload Ubuntu source packages to be built and published as an apt repository by Launchpad. The one we’ll be using was brought to us by Brian Mercer.

$ add-apt-repository ppa:brianmercer/php

You should see some gpg output. This is normal. Now that we’ve added the new apt repository, we need to update our sources list:

$ aptitude -y update

Now, install the preferred PHP packages. These are simply examples that I frequently use. The one you’ll need for this is example is php5-fpm:

$ aptitude -y install php5-cli php5-common php5-mysql php5-suhosin php5-gd
$ aptitude -y install php5-fpm php5-cgi php-pear php5-memcache php-apc
$ service php5-fpm start

Once you’ve started the PHP daemon, make sure the service is listening on port 9000:

$ netstat -plan | grep :9000

Comments for this entry

[...] stable patch method works well however it still requires you to compile PHP manually. This is considered the [...]

Have you a complete tutorial between Nginx 0.8.36 + php-fpm 5.3.2 + wordpress on Ubuntu 9.04. I need that, please.

Thank you before.

Thanks a lot for this very useful article. Everything works like a charm =)

Jim

Just want to say thank you for sharing your knowledge in this matter. Following the steps that you have outlined in this article I’ve been able to put a close to one frustration. Now smooth sailing until the next bug/errata surfaces. Thank you.

Just for the record, the problem seems to be fixed in apc-beta.

You can ‘sudo pecl install apc-beta’, and it installs fine, at least on Lucid.

Super-helpful. Thanks!

Michael

Confirmed. `pecl install apc-beta` also works here (Fedora Core 13). As of 2010.08.14, the beta APC that I grabbed and installed is 3.1.4.

marcofang

This is short and easy, also proved super useful! Thanks the great snippet.

BTW, the “copy to clipboard” js function includes the leading “$” symbol in the clipboard.

Leave your comment



Copyright © 2010. All rights reserved.

This blog is powered by WordPress and proudly hosted by (mt) Media Temple.