Howto Install PHP6 in Ubuntu / debian linux.
First you have to install GCC and GNU make utility
$sudo apt-get install build-essential
Now PHP6 installation needs some additional libraries
- Apache development headers, such as apache-prefork-dev
- International Component for Unicode (ICU) library, libicu-dev
- The XML2 development headers, libxml2-de etc
$ sudo apt-get install apache-prefork-dev libicu-dev libxml2-dev
Now you can download latest PHP6 package from here http://snaps.php.net/
$ tar -xzvf php6.0-xxxxxx.tar.gz
Now Change directory to the new directory made by tar and start configuration
$ cd php6.0-xxxxxx
$ sudo ./configure --exec-prefix=/usr
--with-apxs2=/usr/bin/apxs2
--with-config-file-path=/etc/php6
$ sudo make
$ sudo make test
$ sudo make install