shell_exec() has been disabled for security reasons错误怎么解决?

  ytkah在用composer安装插件时出现了shell_exec() has been disabled for security reasons错误提示,这个是php配置的问题,shell_exec() 函数被禁用了。怎么解决呢?

shell_exec() has been disabled for security reasons

shell_exec() has been disabled for security reasons错误怎么解决?

  打开php.ini,搜索disable_functions,代码如下:

disable_functions = scandir,passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,
ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,
stream_socket_server,fsocket,fsockopen

  把shell_exec删除即可,保存。

  再重新运行指令试试。如果不行照着上面的方法再试一次

上一篇:Spring Cloud环境搭建: Eureka Server


下一篇:[LeetCode] Combination Sum IV 组合之和之四