越简单越好!

freebsd6 安装php5

发表于 2007-04-21 18:37 | 82次阅读 0次点赞   Freebsd

#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服务

返回顶部 ^