不從新編譯PHP爲php增長openssl模塊的方法
網站推廣
yum -y install openssl
/usr/local/bin/是php的安裝目錄
切換到php安裝目錄的etx/openssl目錄
cd /usr/local/src/php-5.2.8/ext/openssl
/usr/local/bin/phpize
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module
查看openssl目錄下有個config.w32和config0.m4,把config0.m4更名爲config.m4。
mv config0.m4 config.m4
執行:
/usr/local/bin/phpize
編譯:
./configure --with-openssl --with-php-config=/usr/local/bin/php-config
make;make install
提示成功後,在php.ini里加入extension = openssl.so
重啓apache或php-fpm,
網站推廣完成.(fblww-0111)