ytkah在用composer安装插件时出现了shell_exec() has been disabled for security reasons错误提示,这个是php配置的问题,shell_exec() 函数被禁用了。怎么解决呢?
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删除即可,保存。
再重新运行指令试试。如果不行照着上面的方法再试一次