重新编译php问题

重新编译php问题,php,unix,compilation,Php,Unix,Compilation,所以我知道这里有一些类似的问题,但我在另一个帖子上没有得到一个有用的答案(不是说它们没有帮助,只是不是针对我的具体问题) 此外,我不太确定这是否是一个SF问题,但以下是: 我最近正在开发一个具有php SAN curl的VPS。我尝试过解决这个问题,但是我需要使用一些curl函数来调查一些社交网站,我得出的结论是我只需要使用curl重新编译 因此,我确保curl已经准备好让php获取它,下载了最新的源代码,从phpinfo获得了当前的php配置,并尝试进行配置。这看起来还行,但make安装在所有

所以我知道这里有一些类似的问题,但我在另一个帖子上没有得到一个有用的答案(不是说它们没有帮助,只是不是针对我的具体问题)

此外,我不太确定这是否是一个SF问题,但以下是:

我最近正在开发一个具有php SAN curl的VPS。我尝试过解决这个问题,但是我需要使用一些curl函数来调查一些社交网站,我得出的结论是我只需要使用curl重新编译

因此,我确保curl已经准备好让php获取它,下载了最新的源代码,从phpinfo获得了当前的php配置,并尝试进行配置。这看起来还行,但make安装在所有php脚本上都出现了500个错误

所以,我检查了我的日志,除了一些简单的favicon.ico未找到和500.shtml未找到警告之外,我没有看到任何错误。我确实看到一些错误与magicquotes不受支持有关,因此,我认为php没有正确编译。我再次运行configure,但没有--with magicquotes标志,并运行make&make测试

maketest失败了,我不知道该怎么做才能让它正常工作,所以在这一点上我迷路了,因为有一个服务器不能运行php

这是我的配置:

./configure --disable-pdo --enable-bcmath --enable-calendar --enable-ftp --enable-libxml --enable-sockets --prefix=/usr --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-kerberos --with-libdir=lib64 --with-libxml-dir=/opt/xml2/ --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-pic --with-zlib --with-zlib-dir=/usr --with-curl=/usr/local/lib/
以下是生成测试消息:

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :   45
Exts tested     :   33
---------------------------------------------------------------------

Number of tests : 11035              7774
Tests skipped   : 3261 ( 29.6%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :   18 (  0.2%) (  0.2%)
Expected fail   :    8 (  0.1%) (  0.1%)
Tests passed    : 7748 ( 70.2%) ( 99.7%)
---------------------------------------------------------------------
Time taken      :  329 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
function with many parameters [tests/func/010.phpt]
Test DateTime::modify() function : usage variation - Passing unexpected values to first argument $modify. [ext/date/tests/DateTime_modify_variation1.phpt]
Bug #50392 date_create_from_format enforces 6 digits for 'u' format character [ext/date/tests/bug50392.phpt]
Test date_modify() function : usage variation - Passing unexpected values to second argument $format. [ext/date/tests/date_modify_variation2.phpt]
mysql connect [ext/mysql/tests/001.phpt]
mysql_connect() [ext/mysql/tests/mysql_connect.phpt]
mysql_[p]connect() - max_links/max_persistent [ext/mysql/tests/mysql_max_links.phpt]
SPL: DirectoryIterator test getGroup [ext/spl/tests/DirectoryIterator_getGroup_basic.phpt]
SPL: Spl Directory Iterator test getOwner [ext/spl/tests/DirectoryIterator_getOwner_basic.phpt]
SQLite3::open error test [ext/sqlite3/tests/sqlite3_15_open_error.phpt]
realpath_cache_size() and realpath_cache_get() [ext/standard/tests/file/realpath_cache.phpt]
Test var_dump() function [ext/standard/tests/general_functions/var_dump_64bit.phpt]
Test gethostbyaddr() function : basic functionality [ext/standard/tests/network/gethostbyaddr_basic1.phpt]
getmxrr() test [ext/standard/tests/network/getmxrr.phpt]
Bug #49936 (crash with ftp stream in php_stream_context_get_option()) [ext/standard/tests/streams/bug49936.phpt]
Test Blowfish crypt() with invalid rounds [ext/standard/tests/strings/crypt_blowfish_invalid_rounds.phpt]
htmlentities() / html_entity_decode() #8592 - #9002 table test [ext/standard/tests/strings/htmlentities17.phpt]
xmlwriter_write_attribute_ns with missing param [ext/xmlwriter/tests/xmlwriter_write_attribute_ns_error_001.phpt]
=====================================================================

=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
output buffering - fatalism [tests/output/ob_011.phpt]
Inconsistencies when accessing protected members [Zend/tests/access_modifiers_008.phpt]
Inconsistencies when accessing protected members - 2 [Zend/tests/access_modifiers_009.phpt]
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770.phpt]
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770_2.phpt]
Bug #48770 (call_user_func_array() fails to call parent from inheriting class) [Zend/tests/bug48770_3.phpt]
Bug #42718 (unsafe_raw filter not applied when configured as default filter) [ext/filter/tests/bug42718.phpt]
SimpleXML: array casting bug [ext/simplexml/tests/034.phpt]
=====================================================================

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? [Yns]:
我不知道从这里到哪里去。我是php程序员,不是服务器管理员

有人看到我在这里做的有什么明显的错误吗

谢谢


Jesse

在您的
make安装
(假设
make
成功构建了所有内容)之后,尝试完全重新启动Apache。我以前遇到过这样的情况,更换php模块会导致Apache出现问题,直到您重新启动它并重新加载新模块。

Make没有抛出任何错误,但我尝试在安装后重新启动Apache,甚至在整个Make安装过程中停止Apache,但没有任何爱。我认为问题在于php make测试失败,所以我的php版本有问题。我试过使用最新的2个版本的php,但都失败了。嗯,那是我的想法,我很抱歉!假设我使用了以前的
configure
字符串,那么我完成的所有PHP构建都正常运行了。。!值得一提的是,我也尝试过yum安装php,我得到了“没有可用的php包”——我尝试过添加centOS-dev-repo和第三方repo,但似乎都没有php。有人知道可靠的php回购协议吗?