का उपयोग करके सेंटोस पर 5.2.12 पर PHP को अपग्रेड करें। मैंने स्रोत डाउनलोड करने और इसे फिर से संकलित करने के बजाय yum
का उपयोग करके मेरी CentOS5 मशीन पर PHP को अपग्रेड करने का एक आसान तरीका खोजने का प्रयास किया (मैंने पिछली बार ऐसा किया, लेकिन यह वास्तव में मुश्किल है CentOS के डिफ़ॉल्ट के समान सभी संकलन कॉन्फ़िगरेशन प्राप्त करने के लिए)। वैसे भी, मैं अंत में यहाँ सूचीबद्ध विधियों का उपयोग करें: http://www.atomicorp.com/wiki/index.php/PHPyum
अब, आदेश php -v
से पता चलता संस्करण पहले से ही 5.2.11 (जो मैं आवश्यक), लेकिन यह हमेशा की तरह कई चेतावनियों के शामिल हैं:
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mssql: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
मुझे लगता है कि इसका मूल रूप से मतलब है कि मुझे इन चार मॉड्यूल को पुन: संकलित करने की ज़रूरत है, मैं यह कैसे कर सकता हूं? किसी भी सुझाव की सराहना की जाती है।
मैं आपसे सहमत हूं। हालांकि, मुझे CentOS के साथ रहना है (यह प्रोडक्शंस सर्वर पर्यावरण है, डेवलपर एक जैसा होना बेहतर है)। दरअसल, मुझे पता चला कि मैं चेतावनियों को हटाने के लिए 'yum अपग्रेड php-mssql php-mcrypt' का उपयोग कर सकता हूं, लेकिन दूसरे दो के लिए, मुझे नहीं लगता कि मुझे कौन से दो मॉड्यूल कॉल करना चाहिए। – WilliamLou
ठीक है। मैं इसे समझता हूं, चलाता हूं: pecl उन्नयन fileinfo, memcache – WilliamLou