topin 发表于 2011-10-11 20:58:04

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

在自己的本本上用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
系统装了好几次都这样

licess 发表于 2011-10-11 21:16:20

php安装部分日志不全,建议手动编译安装,提供错误信息

topin 发表于 2011-10-11 21:47:21

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

cd php-5.2.17/
./buildconf --force
./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
make ZEND_EXTRA_LIBS='-liconv'
make install

提示
# make install
Installing PHP SAPI module:       cgi
Installing PHP CGI binary: /usr/local/bin/
Installing PHP CLI binary:      /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing build environment:   /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
program: phpize
program: php-config
Installing man pages:             /usr/local/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
Archive_Tar    - already installed: 1.3.7
Console_Getopt - already installed: 1.2.3
Structures_Graph- already installed: 1.0.3
XML_Util       - already installed: 1.2.1
PEAR         - already installed: 1.9.1
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
Installing PDO headers:          /usr/local/include/php/ext/pdo/

make test 后得到以下提示=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :   57
Exts tested   :   22
---------------------------------------------------------------------

Number of tests : 8975            6197
Tests skipped   : 2778 ( 31.0%) --------
Tests warned    :    0 (0.0%) (0.0%)
Tests failed    :   20 (0.2%) (0.3%)
Expected fail   :    5 (0.1%) (0.1%)
Tests passed    : 6172 ( 68.8%) ( 99.6%)
---------------------------------------------------------------------
Time taken      :497 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
timezone_abbreviations_list() tests
Test DateTimeZone::listAbbreviations() function : basic functionality
Test DateTime::modify() function : usage variation - Passing unexpected values to first argument $modify.
Test date_modify() function : usage variation - Passing unexpected values to second argument $format.
Test timezone_abbreviations_list() function : basic functionality
DOMDocument:validateOnParse - effectual determination (dom_document_validate_on_parse_read/dom_document_validate_on_parse_write)
Test iconv_mime_decode() function : usage variations - Pass different data types to charset arg
iconv_mime_encode()
iconv stream filter
Test iconv_strlen() function : error conditions - pass an unknown encoding
Test iconv_strlen() function : usage variations - Pass different data types as $encoding arg
Test iconv_strpos() function : error conditions - Pass unknown encoding
Test iconv_strpos() function : usage variations - pass different data types as $charset arg
Test iconv_strrpos() function : error conditions - pass an unknown encoding
Test iconv_strrpos() function : usage variations - pass different data types as $encoding arg
Test iconv_substr() function : error conditions - Pass an unknown encoding
Test session_encode() function : error functionality
SimpleXML: XPath
Test gethostbynamel() function : error conditions
Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using UTF-*
=====================================================================

=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
output buffering - fatalism
ob_start(): Ensure unerasable buffer cannot be flushed by ob_flush()
Bug #42718 (unsafe_raw filter not applied when configured as default filter)
SPL: ArrayObject::exchangeArray() basic usage with object as underlying data store.
Bug #39863 (file_exists() silently truncates after a null byte)
=====================================================================

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

[ 本帖最后由 topin 于 2011-10-11 21:49 编辑 ]

licess 发表于 2011-10-12 11:43:20

没遇到过这个错误

yuweitaocn 发表于 2011-10-12 12:54:17

:L
看了一口血..无力再说什么了..
页: [1]
查看完整版本: vmware centos6 64位,php安装失败 502错误