当前位置: 首页 > article >正文

php不支持curl,解决php-curl不支持https问题

主要原因是因为之前安装的 curl 不支持 https 协议,导致 php-curl 也不支持 https 协议

#/server/app/services/bin/curl -V   查看curl 的版本号,和支持的协议

解决方法:

1> 重新编译安装新版本 curl

#cd /server/install/

#tar -xvf curl-7.37.0.tar.gz

#cd curl-7.37.0

#./configure --prefix=/server/app/services

#make && make install

#/server/app/services/bin/curl -V   (查看是否支持https)

2> 重新编译安装 php ,具体参考 文件中,php 的编译部分

#cd /server/install/php-5.3.20

#make clean

#rm -f configure

#./buildconf --force

#./configure --prefix=/server/app/services/ --with-libxml-dir=/server/app/services/ --with-config-file-path=/server/app/services/ --enable-fastcgi --enable-force-cgi-redirect --with-curl=/server/app/services --enable-apc --enable-memcache --with-zlib-dir=/server/app/services/ --with-zlib --with-libmemcached-dir=/server/app/services/ --enable-memcached --enable-sockets --enable-fpm --enable-pdo  --enable-mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd --with-openssl --with-freetype=/usr/local/freetype/ --enable-ftp  --enable-gd-native-ttf --enable-gd-jis-conv

#make

#make install

#reboot

查看 phpinfo() 页面,搜索 curl ,确定是否已经支持 https 协议

阅读(1843) | 评论(0) | 转发(0) |

http://www.lryc.cn/news/2418219.html

相关文章:

  • DDOS攻击(流量攻击)防御步骤
  • SVN chechout failed: xxx is not valid as filename in directory svn检出错误
  • 覆盖10大医疗应用场景!国产AI大模型应用典型案例盘点
  • 搜索引擎网站登录入口|免费登录|百度登录|谷歌登录|网站收录入口
  • 男士西装搭配
  • 全网最全python教程,从零到精通(学python有它就够必收藏)_python学习相关博客(1)
  • mrp下载基地
  • 如何快速开始微信小程序开发?
  • 淘身边VS淘宝跳蚤街: 官方和第三方的基情之战
  • 计算机图形学(四)几何变换_4_二维复合变换_2_矩阵合并特性
  • 原生微信小程序校园活动报名管理系统+后台管理系统
  • 5个步骤,教会企业如何整理有效的常见问题(FAQ)解答页面。运营必看!
  • ajax调用接口
  • 随机视频API接口(其三)
  • 常用的Android几种性能分析工具
  • 深入探索微信公众号开发:Java代码实现与最佳实践
  • VC6.0(VC++6.0)使用教程(使用VC6.0编写C语言程序)
  • C#中Socket的Accept()和BeginAccept()的区别
  • 小巫随笔14
  • 【附源码】JAVA计算机毕业设计在线考试系统(springboot+mysql+开题+论文)
  • html简单网页代码:期末网页制作 HTML+CSS+JavaScript 个人主页网页设计实例
  • Hadoop大数据平台
  • PCB SI仿真流程
  • Keil报错ST-LINK USB communication error解决方法
  • 网站SEO优化部分原则
  • AI 旅行工具大盘点!31 款 AI 旅行行程规划工具,一键规划旅行路线!
  • PHP+MySQL制作简单动态网站(附详细注释+源码)
  • 单片机加解密原理
  • 【Java】Java的基础入门学习
  • 注意,你注册的假1024可能就是它