|
|
Warning: curl_exec() has been disabled for security reasons
' o0 d S) l0 f) rPROBLEM:Function curl_exec is disabled. What to do?
+ X$ P1 N/ T+ A" ?3 b/ Z. g$ n3 t- fSOLUTION: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.
( Q* H8 G/ E( s+ c7 x" I& O0 F: l解决办法:修改配置文件php.ini文件:
- l7 S: ?2 ?8 W) F修改下面配置: 去掉curl_exec
. z+ O! c* A, p, w3 ydisable_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,escapeshellarg6 x" S1 C8 B/ r+ h4 H* Z
; }8 v! c/ n+ h
修改后的样子:/ c* A! x0 ? f6 L- E- ]3 w
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source,eval,posix_getpwuid5 q% F/ |$ a; @/ f! x7 h8 B
自己的环境: disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source,phpinfo,escapeshellcmd,escapeshellarg3 |5 ~; W V+ Y
重启httpd服务后恢复
' X5 V/ V) r7 }# s5 k* e& ~
- Z/ {5 {# r# I/ `phpIPAM version check最新版本 (1.5.1) 已经安装! |
|