php如何安装openssl扩展?-PHP问题

资源魔 31 0

php装置openssl扩大的办法:起首找到php推展目次的openssl文件;而后将【config0.m4】修正为【config.m4】,并正在phpize进行设置装备摆设;接着进行编译装置,并设置装备摆设【php.ini】,增加拓展;最初重启php效劳。

php装置openssl扩大的办法:

1.起首找到php推展的目次 我的是正在‘/usr/local/php-7.1.5/ext’下

57ffaee3c388f204d52ace2a5f0477b.png

2.进入openssl目次,将外面的一个config0.m4修正为config.m4执行饬令为 “mv config0.m4 config.m4

1eabfdfa1ead4dc106b4bec299939af.png

3.进入 phpize ‘/usr/local/php/bin/phpize ’

9e463fab9d42e0e66c395f3fabf8e69.png

4.进行设置装备摆设

./configure --with-openssl --with-php-config=/usr/local/php/bin/php-config

6a94823ed61c3cec23d4e9c193eb29b.png

5.进行编译装置,胜利后会提醒正在某个目次天生.so文件

make

sudo make install

77c21aa8922d378a9f8494af9bb3767.png

6.设置装备摆设php.ini,增加拓展

412bcea73728ece4a66d7f3e09cc9d7.png

7.重启php效劳

/etc/init.d/php-fpm restart

412bcea73728ece4a66d7f3e09cc9d7.png

8.查看装置胜利与否,phpinfo中查找openssl模块

01eebdefc8d01ec8b8bc946eefd0f1a.png

相干学习保举:PHP编程从入门到通晓

以上就是php若何装置openssl扩大?的具体内容,更多请存眷资源魔其它相干文章!

标签: php php教程 php故障解决 php使用问题 openss

抱歉,评论功能暂时关闭!