These are used by or need tweaking when using FreeBSD:
WITHOUT_X11=yes
make -DBATCH install
http://www.freebsdonline.com/content/blogsection/14/524/
You can with portupgrade to get latest PHP version and PHP modules from Ports and then rebuild them with the following command:
portupgrade -fpb php5\*
If you do not have portupgrade then you must first install it from ports:
cd /usr/ports/ports-mgmt/portupgrade make install clean; rehash
echo net.link.ether.inet.log_arp_movements=0 >> /etc/sysctl.conf sysctl -w net.link.ether.inet.log_arp_movements=0