温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

开启 php的curl插件中的ssl功能

发布时间:2020-09-25 02:30:50 来源:网络 阅读:1380 作者:lvnian2009 栏目:web开发




开启 php的curl插件中的ssl功能

yum -y install openssl-devel
tar xf curl-7.39.0.tar.gz
cd curl-7.39.0
./configure --prefix=/path/lib/curl --with-ssl
make 
make install

重启php就可以(如果不行,那就重新安装一下php。php编译安装参数必须包含--with-curl=/path/lib/curl/)

php编译参数如下:

./configure --prefix=/path/php5.6.11 --with-mysql=/path/mysql --with-mysqli --with-gd --with-iconv-dir=/path/lib/libiconv --with-freetype-dir=/path/lib/freetype/ --with-mysql-sock=/path/mysql/mysql.sock --with-jpeg-dir=/path/lib/jpeg --with-png-dir=/path/lib/libpng --with-zlib-dir=/path/lib/zlib/ --with-libxml-dir=/path/lib/libxml2/ --enable-xml --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl-dir=/path/lib/openssl/ --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext=/path/gettext --enable-session --with-mcrypt=/wdzj/lnmp/lib/libmcrypt/  --with-curl=/wdzj/lnmp/lib/curl/  CFLAGS=-I/wdzj/lnmp/lib/zlib/ LDFLAGS=-L/wdzj/lnmp/lib/zlib/lib


开启 php的curl插件中的ssl功能

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI