Fetching contributors…
Cannot retrieve contributors at this time
120 lines (83 sloc) 3.65 KB

php-build — Builds multiple versions of PHP.

Do you like php-build? You can buy me a beer by Gittipp-ing. Consider also Gittipp-ing one of the awesome contributors.


Clone the Git Repository:

% git clone git://

Then go into the extracted/cloned directory and run:

% ./

This installs php-build to default prefix which is /usr/local.

To install php-build to an other location than /usr/local set the PREFIX environment variable:

% PREFIX=$HOME/local ./

If you don't have permissions to write to the prefix, then you have to run as superuser, either via su -c or via sudo.


v0.8.0, 2012/07/20

  • Added support for 5.3.14, 5.3.15, 5.4.4, 5.4.5 (CHH)
  • Fixed Linux support regarding sed arguments (hnw)
  • Various bug fixes (sanemat, Milly)

v0.7.0, 2012/05/25

  • Added support for 5.3.3, 5.3.12, 5.4.2 (loicfrering)
  • Commenting out the extension_dir in old php.ini files so the default extension dir is used. (sanemat)
  • Honor the --lib-dir which was defined in the definition file by the user (#61). (grota)
  • Added support for patching releases by separating the download/extract step from the build step (#60). (grota)
  • Updated XDebug in all definitions to v2.2.0.
  • Added a Vagrantfile for setting up an Ubuntu 10.10 environment for testing php-build.
  • Added a simple automated testing system using bats (see There are 3 configurations:
    • all: Builds all builtin definitions and runs the test suite on each of them.
    • stable: Builds the most recent versions of the 5.3 and 5.4 series.
    • Supply a definition name and it builds only the definition and runs the test suite on it.

v0.6.2, 2012/05/18

  • Fixed bug #57: Automatic enabling of extension does not work with pecl command.

v0.6.1, 2012/05/09

  • Added support for 5.4.3, 5.3.13

v0.6.0, 2012/05/01

  • php-build now works as plugin to humanshell/phpenv (humanshell).
  • Added support for 5.4.1, 5.3.11
  • Better handling of *.dSYM executables (CHH, eriksencosta).

v0.5.0, 2012/04/16

  • Added --pear flag to install the good old pear installer alongside of Pyrus.
  • Added 5.4.1RC1, 5.4.1RC2, 5.3.11RC1, and 5.3.11RC2 (loicfrering).
  • Removed a hack which renamed generated debug symbols on OSX.
  • Removed IMAP from enabled extensions.
  • Added experimental with_apxs2, which makes an Apache HTTPD module.
  • Fix by removing the unused LOG_DIR variable (suin).

v0.4.0, 2012/03/04

  • XDebug was updated to 2.1.3 in all 5.2.x and 5.3.x definitions.
  • PEAR and Pyrus can be installed along each other. This is experimental though.
  • Added php-build.5 about the definition file format.
  • A particular revision can be passed to install_xdebug_master (loicfrering).
  • Added definition for 5.4.0 final (loicfrering).

v0.3.0, 2012/02/19

  • Added 5.3.10, 5.4.0RC7
  • Added 5.4.0RC8 (loicfrering)
  • Build Logs are now stored in /tmp.
  • Enabled mbstring in 5.2.17 (loicfrering)
  • Refactored some code in download to enable extraction of both .gz and .bz2 archives via tar.

v0.2.0, 2012/01/31

  • Added 5.4.0RC6 (loicfrering)
  • Added --enable-sockets to the default configure flags for all builds.

v0.1.1, 2012/01/11

  • Added 5.3.9RC4, 5.4.0RC5
  • Some changes to Pyrus setup

v0.1.0, 2011/12/28

  • Initial Release