Goal: Build a PHP 5.3 package, that I can install and upgrade on new ubuntu slices as needed, without having to compile on each box.
This is an amalgamation of different blog posts that did certain things really well, but not everything I wanted. The post I refer to specifically Installing PHP 5.3 on Ubuntu by Brandon Savage .
Prep your system
Setup your development server to be able to compile things. By default, most installations will not come with compilers installed.
apt-get install checkinstall
Say yes, and let it follow the dependencies as needed.
Get the development headers for some of the extensions you’ll be compiling in.
apt-get install postgresql-8.3 postgresql-client-8.3 postgresql-client-common postgresql-common postgresql-server-dev-8.3 aptitude install mysql-client …[Read more]