当前位置:Linux教程 - Linux综合 - FreeBSD 下 Apache2+php4+MySQL 快速安装

FreeBSD 下 Apache2+php4+MySQL 快速安装

  一、安装 mysql   ……     二、安装 gnu-pth   cd /usr/ports/devel/pth   make install clean     三、安装 Apache2+PHP4+MySQL     tar zxvf httpd-2.0.35.tar.gz   tar zxvf php-4.2.0RC4.tar.gz     cd httpd-2.0.35   ./configure --prefix=/usr/local/apache2 --enable-ext-filter --enable-so   make   make install     cd ../php-4.2.0RC4   ./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-tsrm-pth   make   make install     cp php.ini-dist /usr/local/lib/php.ini     编辑 /usr/local/apache2/conf/httpd.conf 文件,加上如下几行:      SetOutputFilter PHP   SetInputFilter PHP        启动 Apache   /usr/local/apache2/bin/apachectl start     OK!

(出处:http://www.sheup.com)