易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 655|回复: 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
  \8 \6 R/ t* p  f5 i6 DPROBLEM:Function curl_exec is disabled. What to do?
. I; {' }$ Y6 T- j7 @+ }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.
' V* J) Z" u8 h: v: F3 o0 c' d解决办法:修改配置文件php.ini文件:( o; |" U  y4 f# B* V; B: C7 b, m
修改下面配置: 去掉curl_exec
. j: x8 X' {7 ?! e+ f, Sdisable_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
" F& i5 t1 r( r. y- @+ {" J0 E7 o5 O, O% p6 J9 w8 {" O
修改后的样子:
% ?, c3 D6 n$ L" |8 U$ C! q- ydisable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source,eval,posix_getpwuid  W0 U. V0 g+ z2 c, T! M# h
自己的环境:    disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source,phpinfo,escapeshellcmd,escapeshellarg
: J$ b( ]: j4 {) `8 Q8 x% J重启httpd服务后恢复
1 a: F  c) g( B% F$ k6 G8 P4 ?: H
& U- E1 t, ?. CphpIPAM version check最新版本 (1.5.1) 已经安装!
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 20:22 , Processed in 0.049399 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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