From http://blog.magudia.com/2009/08/22/installing-php53-apache2-mysql5-using-macports/

Install PHP From MacPorts, using MAMP for mySQL