研究得出结论,为php.ini的锅编辑php.ini(lnmp或lnmpa的默认php.ini路径为/usr/local/php/etc/php.ini)
找到disable_functions =字段
将原本的:
disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
改成:
disable_functions = passthru,exec,system,shell_exec,proc_open,popen
然后重启:
我是lnmp.org所以直接lnmp restart
就好.
© 著作权归作者所有
文章评论(0)