先安装依赖包:

yum install openssl openssl-devel

进入PHP源码扩展类库安装包里的OpenSSL文件夹,根据个人的安装包位置不同,此处是

cd /home/lamp/php.5.5.29/ext/openssl/

在当前目录下执行:

mv config0.m4 config.m4

复制后,运行PHP安装后bin目录下的phpize. 我的是:

/usr/local/php5/bin/phpize

./configure –with-php-config=/usr/local/php5/bin/php-config(php-config文件的路径)

make

make install

将openssl.so复制到PHP扩展文件夹中

修改php.ini中

extesion=openssl.so

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


*