#cd /usr/ports/lang/php5/
#make install clean
#vi /usr/local/etc/apache22/httpd.conf
编辑apache配置文件,以便让apache 支持php
添加:AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
添加:index.php
#/usr/local/etc/rc.d/apache22.sh restart 重新启动apache服务