第一句子网 - 唯美句子、句子迷、好句子大全
第一句子网 > 不重新编译PHP为php增加openssl模块办法

不重新编译PHP为php增加openssl模块办法

时间:2020-06-27 15:06:13

相关推荐

不重新编译PHP为php增加openssl模块办法

php教程|php手册

openssl

php教程-php手册

棋牌游戏源码团购,ubuntu命令ls -s,抢票爬虫脚本,淘宝php搭建,seo 优化 多久lzw

不重新编译PHP为php增加openssl模块的方法,需要的朋友可以参考下。

最新目录分类网站源码,z3735 ubuntu,如何在tomcat官网下载,爬虫有什么后果,php服务端倒计时,修改seo描述lzw

android 源码网,ubuntu卸载锐速,爬虫 无法抓包,php pcrl,seo快速原创lzw

代码如下:

yum -y install openssl

/usr/local/bin/是php的安装目录

切换到php安装目录的etx/openssl目录

cd /root/soft/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,完成.

PS:为啥目录下是config0.m4,而不是config.m4,不理解。

pcre、zlib等模块目录下也是config0.m4。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。