介绍一种快速安装“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"这句前的"#"。
(出处:不详 ) |