In the earlier post, I talked about setting up nconf on FreeBSD. I decided to give Fruity/Lilac a try. It's been around longer, anyway, and it supports imports of existing configs. It also can use nmap to generate a basic configuration.
Anyway, the rough steps are:
1. install mysql50-server
2. install apache22
3. install php5
4. install php5-extensions with the following modules enabled:
json, pcntl, posix, mysql, curl
5. install php5-pdo_mysql
6. install nmap
7. untar the lilac source to /usr/local/www/apache22/data/lilac
8. sudo chown www:www /usr/local/www/apache22/data/lilac/includes
9. restart apache.
Note: in order to get apache to work with php, I created a php config file in /usr/local/etc/apache22/Includes/php.conf:
DirectoryIndex index.php index.html index.htm
AddType application/x-httpd-php .php .htm .html
AddType application/x-httpd-php-source .phps