php+mysql的安装

设用户名为work。

假设mysql已经安装成功,安装目录为/home/work/bin/mysql。

在php源码的根目录下执行如下命令。

./configure --prefix=/home/work/bin/php  --enable-fastcgi --enable-force-cgi-redirect  --with-mysql=/home/work/bin/mysql

(注意,如果提示"--enable-fastcgi --enable-force-cgi-redirect"是未知的选项,可以不用管,说明php默认支持cgi)

make && make install 

猜你喜欢

转载自goaheadtw.iteye.com/blog/1633158