Tag archives: install

Installing PHP on a server

Install PHP

Warning: Before starting the installation, you must have a Web server installed.
You can follow our tutorial to install an Apache server.

1) Download the latest version of PHP source,
Type the following command on your terminal, change the version number (here 5.4.8) to obtain the latest version of PHP
wget http://us2.php.net/distributions/php-5.4.8.tar.bz2

2) Extract the archive: tar -jxvf php-5.4.8.tar.bz2

3) Now compile and install the source code of PHP
Type this: cd php-5.4.8/

./configure --prefix=/var/www
sudo make ...

Continue reading