转自:http://hi.baidu.com/jxlao/blog/item/6effaceab9d3063e2cf534f7.html #cd /usr/ports/www/apache22 #make isntall clean [X]选择Mysql [O]去掉IPV6 配置Apache22: 1、备份配置文件: #cp /usr/local/etc/apache/httpd.conf /us/local/etc/apache/httpd.conf.back 2、修改/etc/rc.conf vi /etc/rc.conf apache22_enable=”YES” 3、修改httpd.conf vi /usr/local/etc/apache/httpd.conf 105行处: LoadModule php5_module libexec/apache22/libphp5.so 156行处: DocumentRoot “/usr/local/www/apache22/data” 216行处: <IfModule dir_module> DirectoryIndex index.php index.html index.txt </IfModule> 359行处: AddType application/x-httpd-php.php AddType application/x-httpd-php-source.phps 启动apache22 # apachectl start # 出现错误信息 No such file or directory: Failed to enable the ‘httpready’ Accept Filter # vi /boot/loader.conf # 让开机时预先读取 修改内容accf_http_load=”yes” # apachectl restart # 重启apache ============================================= 安装mysql #cd......Read More>