Building PHP from source To build PHP from source on Linux you need the following dependencies: autoconf gcc g++ make rc2 cd /usr/src/php ./configure make make install See also PHP Internals