VPS侦探论坛

 找回密码
 注册
查看: 8979|回复: 4

vmware centos6 64位,php安装失败 502错误

[复制链接]
发表于 2011-10-11 20:58:04 | 显示全部楼层 |阅读模式

在自己的本本上用vmware装的,nginx正常,但不能解析php文件,探针什么的都报 502 gateway 错误
附安装日志
php -v 没反应
主要报这个错误
Starting php_fpm /etc/init.d/php-fpm: line 61: /usr/local/php/bin/php-cgi: No such file or directory
/usr/local/php目录中只有 etc
系统装了好几次都这样

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-10-11 21:16:20 | 显示全部楼层


php安装部分日志不全,建议手动编译安装,提供错误信息
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-10-11 21:47:21 | 显示全部楼层

copy centos.sh 的命令执行 make test 报php错误


  1. cd php-5.2.17/
  2. ./buildconf --force
  3. ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic
  4. make ZEND_EXTRA_LIBS='-liconv'
  5. make install
复制代码


提示
  1. [root@localhost php-5.2.17]# make install
  2. Installing PHP SAPI module:       cgi
  3. Installing PHP CGI binary: /usr/local/bin/
  4. Installing PHP CLI binary:        /usr/local/bin/
  5. Installing PHP CLI man page:      /usr/local/man/man1/
  6. Installing build environment:     /usr/local/lib/php/build/
  7. Installing header files:          /usr/local/include/php/
  8. Installing helper programs:       /usr/local/bin/
  9.   program: phpize
  10.   program: php-config
  11. Installing man pages:             /usr/local/man/man1/
  12.   page: phpize.1
  13.   page: php-config.1
  14. Installing PEAR environment:      /usr/local/lib/php/
  15. [PEAR] Archive_Tar    - already installed: 1.3.7
  16. [PEAR] Console_Getopt - already installed: 1.2.3
  17. [PEAR] Structures_Graph- already installed: 1.0.3
  18. [PEAR] XML_Util       - already installed: 1.2.1
  19. [PEAR] PEAR           - already installed: 1.9.1
  20. Wrote PEAR system config file at: /usr/local/etc/pear.conf
  21. You may want to add: /usr/local/lib/php to your php.ini include_path
  22. Installing PDO headers:          /usr/local/include/php/ext/pdo/
复制代码


make test 后得到以下提示
  1. =====================================================================
  2. TEST RESULT SUMMARY
  3. ---------------------------------------------------------------------
  4. Exts skipped    :   57
  5. Exts tested     :   22
  6. ---------------------------------------------------------------------

  7. Number of tests : 8975              6197
  8. Tests skipped   : 2778 ( 31.0%) --------
  9. Tests warned    :    0 (  0.0%) (  0.0%)
  10. Tests failed    :   20 (  0.2%) (  0.3%)
  11. Expected fail   :    5 (  0.1%) (  0.1%)
  12. Tests passed    : 6172 ( 68.8%) ( 99.6%)
  13. ---------------------------------------------------------------------
  14. Time taken      :  497 seconds
  15. =====================================================================

  16. =====================================================================
  17. FAILED TEST SUMMARY
  18. ---------------------------------------------------------------------
  19. timezone_abbreviations_list() tests [ext/date/tests/010.phpt]
  20. Test DateTimeZone::listAbbreviations() function : basic functionality [ext/date/tests/DateTimeZone_listAbbreviations_basic1.phpt]
  21. Test DateTime::modify() function : usage variation - Passing unexpected values to first argument $modify. [ext/date/tests/DateTime_modify_variation1.phpt]
  22. Test date_modify() function : usage variation - Passing unexpected values to second argument $format. [ext/date/tests/date_modify_variation2.phpt]
  23. Test timezone_abbreviations_list() function : basic functionality [ext/date/tests/timezone_abbreviations_list_basic1.phpt]
  24. DOMDocument:validateOnParse - effectual determination (dom_document_validate_on_parse_read/dom_document_validate_on_parse_write) [ext/dom/tests/DOMDocument_validate_on_parse_variation.phpt]
  25. Test iconv_mime_decode() function : usage variations - Pass different data types to charset arg [ext/iconv/tests/iconv_mime_decode_variation3.phpt]
  26. iconv_mime_encode() [ext/iconv/tests/iconv_mime_encode.phpt]
  27. iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
  28. Test iconv_strlen() function : error conditions - pass an unknown encoding [ext/iconv/tests/iconv_strlen_error2.phpt]
  29. Test iconv_strlen() function : usage variations - Pass different data types as $encoding arg [ext/iconv/tests/iconv_strlen_variation2.phpt]
  30. Test iconv_strpos() function : error conditions - Pass unknown encoding [ext/iconv/tests/iconv_strpos_error2.phpt]
  31. Test iconv_strpos() function : usage variations - pass different data types as $charset arg [ext/iconv/tests/iconv_strpos_variation4.phpt]
  32. Test iconv_strrpos() function : error conditions - pass an unknown encoding [ext/iconv/tests/iconv_strrpos_error2.phpt]
  33. Test iconv_strrpos() function : usage variations - pass different data types as $encoding arg [ext/iconv/tests/iconv_strrpos_variation3.phpt]
  34. Test iconv_substr() function : error conditions - Pass an unknown encoding [ext/iconv/tests/iconv_substr_error2.phpt]
  35. Test session_encode() function : error functionality [ext/session/tests/session_encode_error2.phpt]
  36. SimpleXML: XPath [ext/simplexml/tests/008.phpt]
  37. Test gethostbynamel() function : error conditions [ext/standard/tests/network/gethostbynamel_error.phpt]
  38. Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using UTF-* [ext/xml/tests/bug32001.phpt]
  39. =====================================================================

  40. =====================================================================
  41. EXPECTED FAILED TEST SUMMARY
  42. ---------------------------------------------------------------------
  43. output buffering - fatalism [tests/output/ob_011.phpt]
  44. ob_start(): Ensure unerasable buffer cannot be flushed by ob_flush() [tests/output/ob_start_basic_unerasable_005.phpt]
  45. Bug #42718 (unsafe_raw filter not applied when configured as default filter) [ext/filter/tests/bug42718.phpt]
  46. SPL: ArrayObject::exchangeArray() basic usage with object as underlying data store. [ext/spl/tests/arrayObject_exchangeArray_basic3.phpt]
  47. Bug #39863 (file_exists() silently truncates after a null byte) [ext/standard/tests/file/bug39863.phpt]
  48. =====================================================================

  49. You may have found a problem in PHP.
  50. We would like to send this report automatically to the
  51. PHP QA team, to give us a better understanding of how
  52. the test cases are doing. If you don't want to send it
  53. immediately, you can choose "s" to save the report to
  54. a file that you can send us later.
  55. Do you want to send this report now? [Yns]:
复制代码
难道是PHP本身有问题?

[ 本帖最后由 topin 于 2011-10-11 21:49 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-10-12 11:43:20 | 显示全部楼层



没遇到过这个错误
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-10-12 12:54:17 | 显示全部楼层


看了一口血..无力再说什么了..

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 12:30 , Processed in 0.028940 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表