Aug 24 2008

[Linux] Installing latest Apache, PHP and MySQL from sources

Category: Articles,Linux administrationFractalizeR @ 12:48 am

Installing PHP

Now let’s install PHP. Check 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
  • 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 🙂

Tags: , , , , ,

Leave a Reply

You must be logged in to post a comment. Login now.