所以我知道這裏有些類似的問題,但我一直無法在另一個線程上得到有用的答案(不是他們沒有幫助,只是不是我的具體問題)。重新編譯php的麻煩
另外,我不太清楚這是不是一個SF的問題,但在這裏有雲:
我最近工作的一個VPS是有PHP SANS捲曲。我嘗試瞭解它,但我需要使用一些curl函數來輪詢一些社交網站,並且我得出結論,我只需要用curl重新編譯。
因此,我確定curl已準備好用php來抓取它,下載最新的源代碼,從phpinfo獲得我當前的php配置,並嘗試配置& make。這似乎確定,但一個make安裝結束了所有的PHP腳本500錯誤。
所以,我檢查了我的日誌,我沒有看到任何錯誤,除了一些簡單的favicon.ico未找到和500.shtml未找到警告。我確實發現一些錯誤與magicquotes沒有被支持有關,所以,我認爲php沒有被編譯正確。我再次運行configure,但沒有--with-magicquotes標誌,並且運行make &進行測試。
使測試失敗,我不知道該怎麼做才能使其工作,所以在這一點上,我迷路了,用一臺不會運行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程序員,而不是服務器管理員。
有人看到我在這裏做什麼顯然不對?
感謝,
傑西
對於它的價值,我也嘗試了yum安裝php,並且我得到了「沒有包php可用」 - 我嘗試添加centOS dev回購和第三方回購,但都沒有似乎有php。任何人都知道一個可靠的PHP回購? – Jesse 2010-06-02 20:49:55