I use a Mac based application called WebStart that is excellent quality however the updates for PHP and other components are slow and I have been searching all over and been trying to get support from the admins but to no avail. I have however figured out how to compile new versions of PHP from source to work with WebStart.
You need to download and extract the latest version of PHP that you want use then from terminal go into that folder and run the following commands (This is for PHP 5.3.x):
$> ./configure --prefix=/usr/local/webstart/sw/php-5.3 --with-config-file-path=/usr/local/webstart/sw/php-5.3 --with-apxs2=/usr/local/webstart/sw/apache2/bin/apxs --with-db4=/usr/local/webstart/sw/bdb/ --with-kerberos=/usr --with-mcrypt=/usr/local/webstart/sw/lib-mcrypt --with-mhash=/usr/local/webstart/sw/mhash --with-ldap=/usr/local/webstart/sw/openldap --with-pgsql=/usr/local/webstart/sw/postgresql --with-mysql=/usr/local/webstart/sw/mysql --with-mysql-sock=/tmp/mysql.sock --with-mysqli=/usr/local/webstart/sw/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/webstart/sw/mysql --with-iodbc=/usr --with-zlib-dir=/usr --with-bz2 --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-shmop --enable-sockets --enable-mbstring --with-gettext=/usr/local/webstart/sw/gettext --enable-exif --with-jpeg-dir=/usr/local/webstart/sw/lib-jpeg --with-png-dir=/usr/local/webstart/sw/lib-png --with-freetype-dir=/usr/local/webstart/sw/freetype --with-gd --enable-gd-native-ttf --with-curl=/usr --enable-ftp --disable-rpath --with-xsl --enable-soap --enable-bcmath --enable-calendar --enable-cli --disable-debug --with-openssl --with-xmlrpc --with-iconv=/usr/local/webstart/sw/lib-iconv --with-mssql=/usr/local/webstart/sw/freetds
$> make
$> make test
$> sudo make install
After that you will need to modify the files in Apache a bit:
$> cd /usr/local/webstart/sw/apache2/modules
$> sudo rm libphp-5.3.so
$> sudo mv libphp5.so libphp-5.3.so
Then with the apache main configuration editor in Webstart and look for “LoadModule php5_module modules/libphp5.so” and put a “#” in front of it causing it to be commented out. After that restart the server once you save the configuration and your PHP is updated! I will try to figure out how to get the latest versions of Apache working for you, I will be back when I have that information regarding this application.
