Setting up an AMP stack on FreeBSD has a detailed step by step installation procedure for installing Apache, MySQL and PHP on FreeBSD using the ports collection.  Some extra steps are taken to secure the installation and you end up with a nice multifunctional FreeBSD+AMP setup with very little effort.