闲话安装PHP5.0

稍微有变的就是在“./configure”这个命令上所带的参数不同,具体可以使用命令“./configure --help”查看。下面所要说的是本人在安装PHP5.0.0b2上遇到的问题。 下载完了“php-5.0.0b2.tar.gz”之后,执行“#tar xzvf php-5.0.0b2.tar.gz”命令解压到“php-5.0.0b2”目录,接着像往常一样执行“./configure --help”,完了之后再用如下命令安装(机器上已经存在php4.3.3,安装在/usr/local/apache/php/目录下): #./configure --with-apxs2=/usr/local/apache/bin/apxs \\ --with-mysql \\ --prefix=/usr/local/apache/php5 \\ --with-config-file-path=/usr/local/apache/php5 \\ --enable-track-vars --disable-cgi \\ --with-zlib --with-iconv \\ --with-gettext \\ --with-gd \\ --with-gd-dir=/usr/lib \\ --with-jpeg \\ --with-jpeg-dir=/usr/lib \\ --with-freetype \\ --with-freetype=/usr/lib \\ --with-

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus