Linux下快速安装“apache php3 mysql”
时间:2007-02-17 来源:PHP爱好者
介绍一种快速安装“apache PHP3 mysql”的方法:
此方法是将PHP3编译成apache的一个模块(在此之前要先安装mysql)。
gunzip apache_1.3.x.tar.gz
tar xvf apache_1.3.x.tar
gunzip PHP-3.0.x.tar.gz
tar xvf PHP-3.0.x.tar
cd apache_1.3.x
./configure --prefix=/your_path
cd ../PHP-3.0.x
./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
make
make install
cd ../apache_1.3.x
./configure --prefix=/your_path --activate-module=src/modules/PHP3/libPHP3.a
make
make install
cd ../PHP-3.0.x
cp PHP3.ini-dist /usr/local/lib/PHP3.ini
编辑httpd.conf文件,去掉"#AddType application/x-httpd-PHP3 .PHP3"这句前的"#"。
【本文版权归作者dodo与奥索网共同拥有,如需转载,请注明作者及出处】
php爱好者站 http://www.phpfans.net php基础|php进阶|php模板.
此方法是将PHP3编译成apache的一个模块(在此之前要先安装mysql)。
gunzip apache_1.3.x.tar.gz
tar xvf apache_1.3.x.tar
gunzip PHP-3.0.x.tar.gz
tar xvf PHP-3.0.x.tar
cd apache_1.3.x
./configure --prefix=/your_path
cd ../PHP-3.0.x
./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
make
make install
cd ../apache_1.3.x
./configure --prefix=/your_path --activate-module=src/modules/PHP3/libPHP3.a
make
make install
cd ../PHP-3.0.x
cp PHP3.ini-dist /usr/local/lib/PHP3.ini
编辑httpd.conf文件,去掉"#AddType application/x-httpd-PHP3 .PHP3"这句前的"#"。
【本文版权归作者dodo与奥索网共同拥有,如需转载,请注明作者及出处】
php爱好者站 http://www.phpfans.net php基础|php进阶|php模板.
相关阅读 更多 +