I wanted to update php to version 5.3.6 from 5.3.2 to cover some security issues. I also wanted to include the GD graphics library functions in this version of php. This will allow image manipulation by script, something that will allow for more dynamic, visual customization.

This is what got installed/updated:

  • jpeg8
  • libpng 1.2.44
  • libxml 2.7.8
  • freetype 2.4.4
  • php 5.3.6

So… php and the graphics routines are now available to anything hosted on that server.

This is the configure script:

CFLAGS=”-arch x86_64″

./configure –prefix=/usr/local/php5 –mandir=/usr/share/man –infodir=/usr/share/info –sysconfdir=/etc –with-config-file-path=/etc –with-zlib –with-zlib-dir=/usr/zlib –with-openssl –without-iconv –enable-exif –enable-ftp –enable-mbstring –enable-mbregex –enable-sockets –with-mysql=/usr/local/mysql –with-pdo-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config –with-mysql-sock=/tmp/mysql.sock –with-apxs2=/usr/local/apache2/bin/apxs –with-gd –with-jpeg-dir=/usr/local/lib –with-png-dir=/usr/local/lib –with-freetype-dir=/usr/local/lib