linux環(huán)境下安裝PHP的OpenSSL擴(kuò)展的方法講解
先安裝依賴包:yum install openssl openssl-devel
進(jìn)入PHP安裝包里的OpenSSL文件夾,根據(jù)個(gè)人的安裝包位置不同,此處是
cd /home/local/php.5.6.25/ext/openssl/
phpize
可能會(huì)報(bào)錯(cuò):Cannot find config.m4.
Make sure that you run /usr/local/bin/phpize in the top level source directory of the module,
在當(dāng)前目錄下執(zhí)行:mv config0.m4 config.m4
重新phpize
./configure --with-php-config=/usr/local/php/bin/php-config(php-config文件的路徑)
make
make install
將openssl.so復(fù)制到PHP擴(kuò)展文件夾中
修改php.ini中 extesion=openssl.so
以上這篇linux環(huán)境下安裝PHP的OpenSSL擴(kuò)展的方法講解就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持本站。
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。
關(guān)注官方微信