install debian package with change configuration install debian package with change configuration php php

install debian package with change configuration


  1. Download and extract package sources with apt-get source php5

  2. Edit debian/rules file and add --enable-roxen-zts or --enable-maintainer-zts to COMMON_CONFIG (confirm which one you need with ./configure --help).

  3. sudo apt-get build-dep php5 to install build dependencies.

  4. From directory where package source were extracted run dpkg-buildpackage -uc -b.

Optionally if you have devscripts package installed you may run debuild -uc -b instead of dpkg-buildpackage -uc -b.


Dont worry, it really takes a long time for the package build, and it also looks like it is in loop, but it will come to an end, eventually.