免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2314 | 回复: 2

各位咨询下。编译安装php-5.2.17时候报告使用了未知的预编译选项 [复制链接]

论坛徽章:
0
发表于 2012-02-06 18:44 |显示全部楼层
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

论坛徽章:
0
发表于 2012-02-06 19:49 |显示全部楼层
本帖最后由 rootsecurity 于 2012-02-06 19:52 编辑

  1. [root@localhost ~]#tar zxvf php-5.2.17.tar.gz
  2. [root@localhost ~]#gzip -d ./suhosin-patch-5.2.17-0.9.7.patch.gz
  3. [root@localhost ~]#cd php-5.2.17
  4. [root@localhost php-5.2.17]#patch -p 1 -i ../suhosin-patch-5.2.17-0.9.7.patch
  5. [root@localhost php-5.2.17]#patch -p1 < ../php-5.2.*-max-input-vars.patch
  6. [root@localhost php-5.2.17]#./configure --prefix=/usr/local/php-5.2.17 \
  7. --with-config-file-path=/usr/local/php-5.2.17/conf \
  8. --enable-mbstring \
  9. --enable-ftp \
  10. --with-gd \
  11. --with-jpeg-dir=/usr \
  12. --with-png-dir=/usr \
  13. --enable-magic-quotes \
  14. --with-mysql=/usr/local/mysql-5.1.61 \
  15. --with-pear \
  16. --enable-sockets \
  17. --with-ttf \
  18. --with-freetype-dir=/usr \
  19. --enable-gd-native-ttf \
  20. --with-zlib \
  21. --enable-sysvsem \
  22. --enable-sysvshm \
  23. --with-libxml-dir=/usr \
  24. --with-apxs2=/usr/local/apache2/bin/apxs \
  25. --with-iconv-dir=/usr/local \
  26. --with-xmlrpc \
  27. --enable-xml \
  28. --enable-shmop \
  29. --enable-zip \
  30. --with-mhash \
  31. --with-mcrypt \
  32. --enable-discard-path \
  33. --enable-bcmath \
  34. --enable-soap \
  35. --enable-inline-optimization \
  36. --with-curl \
  37. --with-curlwrappers \
  38. --enable-mbregex \
  39. --with-openssl
  40. [root@localhost php-5.2.17]#make ZEND_EXTRA_LIBS=’-liconv’
  41. [root@localhost php-5.2.17]#make install
复制代码
按我这个步骤再操作一遍试试

论坛徽章:
0
发表于 2012-02-09 14:31 |显示全部楼层
5.2.17 版本的记得打补丁,防止hash 漏洞攻击
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP