我是小站长 發表於 2019-6-2 12:29:09

php未安装curl扩展导致安装应用数据无法识别问题的解决方案

<br /><br />早上升级到3.4版本之后安装应用发现报错<br /><br /><img id="aimg_EJ99C" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" width="110" src="http://www.discuz.net/forum.php?mod=image&amp;aid=1932169&amp;size=300x300&amp;key=f2ae6126e912abaf&amp;nocache=yes&amp;type=fixnone" border="0" alt="" /><br /><br /><br />按照http://www.discuz.net/thread-3842481-1-1.html 的提示访问https_test.php 显示未安装curl插件 ,<br />之后在系统安装curl插件后解决了此问题。记录一下帮助遇到同样问题的网友。<br /><br /><br />centOS下载安装CURL<br />wget http://curl.haxx.se/download/curl-7.63.0.tar.gz<br />tar -zxf curl-7.17.1.tar.gz<br />./configure --prefix=/usr/local/curl&nbsp; &nbsp; (curl安装位置)<br />make &amp; make install<br /><br />配置php扩展 (本人php7)<br />进入php源码curl扩展目录<font color="#000"><font face="微软雅黑"><font color="#444444"><font face="Tahoma, &amp;quot;">/usr/local/src/php-7.0.32/ext/curl</font></font></font></font><br /><br />执行<br />/usr/local/php/bin/phpize&nbsp; &nbsp;<br />./configure --with-php-config=/usr/local/php/bin/php-config --with-curl=&nbsp;&nbsp;(curl安装位置 本例中即:/usr/local/curl&nbsp;&nbsp;)<br />make &amp; make install<br /><br />结束会输出 curl.so的路径<br />找到php.ini&nbsp; &nbsp;(位置可能不同 ,本人为/etc/php.ini )<br /> 修改 php.ini&nbsp;&nbsp;文件中&nbsp; &nbsp;extension = 输出的curl.so路径/curl.so<br />systemctl restart httpd 重启apache<br />ok<br /><br /><br />curl<em>, </em>php<em>, </em>安装<em>, </em>http<em>, </em>usr

耗子 發表於 2019-6-2 19:09:50

&nbsp;&nbsp;谢谢分享哦!!

鸿茂传媒 發表於 2019-6-3 10:43:59

谢谢分享

xzaxza 發表於 2019-6-3 23:56:06

感谢了

站长 發表於 2019-6-16 15:32:04

谢谢分享 进来学习

killer444 發表於 2019-8-29 00:23:35

win主机怎么办啊?

killer444 發表於 2019-8-29 15:35:02

win主机怎么安装??<br />

武汉spa 發表於 2020-6-6 10:07:51

我也出现了这个问题,还是不知道怎么解决,谁能出个视频讲解一下啊。<img id="aimg_7537" aid="7537" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202006/06/100747x1mwa73ytw7sal33.png" src="https://www.dismall.com/data/attachment/forum/202006/06/100747x1mwa73ytw7sal33.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" alt="XT{B]O{F4IG6N0]SVC54641.png" title="XT{B]O{F4IG6N0]SVC54641.png" w="1326" />
頁: [1]
查看完整版本: php未安装curl扩展导致安装应用数据无法识别问题的解决方案