易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 654|回复: 0
收起左侧

php Warning: curl_exec() has been disabled for security reasons

[复制链接]
发表于 2023-2-16 15:50:29 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
Warning: curl_exec() has been disabled for security reasons& g+ }. n" g% W  H
PROBLEM:Function curl_exec is disabled. What to do?
5 O' U7 A- F; T# _7 F5 d% M5 `SOLUTION:In order to eliminate this error message you need to do ONE of the following things:Remove the curl_exec string from the disable_functions at php.ini* fileAsk your hosting provider to remove the string above if you don’t have an access to the php.ini* fileChange hosting provider which allows the running of the curl_exec function.
5 H8 j  p) {& y+ O. S) B: R解决办法:修改配置文件php.ini文件:- f" R, L2 w7 C& p, u' B
修改下面配置: 去掉curl_exec) l0 |2 X/ Z2 x( c$ q
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,show_source,eval,posix_getpwuid自己的环境:   disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,phpinfo,escapeshellcmd,escapeshellarg$ O$ T* v0 A/ ~' b1 ~& T

& @+ G/ V; m( D2 ^% X修改后的样子:. `( b: x6 i! |
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source,eval,posix_getpwuid
7 i0 H( R; L: `5 f6 n自己的环境:    disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source,phpinfo,escapeshellcmd,escapeshellarg- f+ g% @5 L1 Y7 W) _- C: s
重启httpd服务后恢复
7 i$ X0 t7 F- R# U4 G/ G& d7 V- ?0 ?* ^% I: E. e# Q3 N
phpIPAM version check最新版本 (1.5.1) 已经安装!
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-3-9 00:37 , Processed in 0.044671 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表