1. 安装phpcd /usr/ports/lang/php5make config 这里记得选上fast-cgimake install clean
完成后,记得拷贝php的配置文件:cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini
安装扩展cd /usr/ports/lang/php5-extensions/make install clean
2. 安装nginxcd /usr/ports/www/nginxma...