各位咨询下。编译安装php-5.2.17时候报告使用了未知的预编译选项
cd /usr/local/src/lemp_packages/gzip -d suhosin-patch-5.2.17-0.9.7.patch.gz
tar -xvzf php-5.2.17.tar.gz
#gzip -cd php-5.2.17-fpm-0.5.14.diff.gz|patch -d php-5.2.17 -p1
cd php-5.2.17
patch -p 1 -i ../suhosin-patch-5.2.17-0.9.7.patch
#再打hash补丁
patch -p1 < ../php-5.2.*-max-input-vars.patch
预编译
./configure --prefix=/usr/local/php-5.2.17httpd --with-config-file-path=/usr/local/php-5.2.17httpd/etc --enable-suhosin --enable-fpm --enable-fastcgi --enable-force-cgi-redirect --disable-rpath --enable-discard-path --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql-5.1.61 --with-mysqli=/usr/local/mysql-5.1.61/bin/mysql_config --with-pdo-mysql=/usr/local/mysql-5.1.61 --with-sqlite --with-pdo-sqlite --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-gd --with-zlib --with-libxml-dir --with-curl --with-curlwrappers --with-openssl --with-mhash --with-xmlrpc --with-mcrypt --enable-xml --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-gd-native-ttf --enable-ftp --enable-pcntl --enable-sockets --enable-zip --enable-soap --enable-pdo --disable-debug --disable-ipv6
其中使用了
--enable-suhosin --enable-fpm
但是预编译后报告
Thank you for using PHP.
Notice: Following unknown configure options were used:
--enable-suhosin
--enable-fpm
Check './configure --help' for available options
本帖最后由 rootsecurity 于 2012-02-06 19:52 编辑
#tar zxvf php-5.2.17.tar.gz
#gzip -d ./suhosin-patch-5.2.17-0.9.7.patch.gz
#cd php-5.2.17
#patch -p 1 -i ../suhosin-patch-5.2.17-0.9.7.patch
#patch -p1 < ../php-5.2.*-max-input-vars.patch
#./configure --prefix=/usr/local/php-5.2.17 \
--with-config-file-path=/usr/local/php-5.2.17/conf \
--enable-mbstring \
--enable-ftp \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--enable-magic-quotes \
--with-mysql=/usr/local/mysql-5.1.61 \
--with-pear \
--enable-sockets \
--with-ttf \
--with-freetype-dir=/usr \
--enable-gd-native-ttf \
--with-zlib \
--enable-sysvsem \
--enable-sysvshm \
--with-libxml-dir=/usr \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-iconv-dir=/usr/local \
--with-xmlrpc \
--enable-xml \
--enable-shmop \
--enable-zip \
--with-mhash \
--with-mcrypt \
--enable-discard-path \
--enable-bcmath \
--enable-soap \
--enable-inline-optimization \
--with-curl \
--with-curlwrappers \
--enable-mbregex \
--with-openssl
#make ZEND_EXTRA_LIBS=’-liconv’
#make install
按我这个步骤再操作一遍试试 5.2.17 版本的记得打补丁,防止hash 漏洞攻击
页:
[1]