Installing PHP
Now let’s install PHP. Check www.php.net for latest PHP version. At the time of writting it is 5.2.6. Also check link to PHP source at the mirror, that is the closest to you:
- cd /usr/local/fractal
- wget http://ru2.php.net/get/php-5.2.6.tar.gz/from/ru.php.net/mirror
- tar -zxvf php-5.2.6.tar.gz
- cd php-5.2.6
Now we need to configure PHP the same way as we did it with Apache. I will list configure command with the most popular options:
- ./configure –silent –with-apxs2 –enable-bcmath –enable-calendar –enable-exif –enable-ftp –enable-gd-native-ttf –enable-libxml –enable-mbstring –enable-pdo=shared –enable-soap –enable-sockets –enable-wddx –enable-zip –with-curl –with-gd –with-gettext –with-imap –with-imap-ssl –with-kerberos –with-mcrypt= –with-mhash –with-mysql –with-mysql-sock –with-mysqli –with-openssl –with-pdo-mysql=shared –with-pdo-sqlite=shared –with-pspell –with-sqlite=shared –with-tidy –with-ttf –with-xmlrpc –with-xpm-dir=/usr/X11R6 –with-xsl –with-zlib –with-bz2 –with-gmp –enable-embedded-mysqli=shared –with-pear
- make
- make install
Actually, that is all. Installation now finished

