安装ThinkAdmin提示 proc_get_status() has been disabled
cd ThinkAdmin运行 composer install --optimize-autoloader
提示错误:
The Process class relies on proc_open, which is not available on your PHP installation.PHP Fatal error: Uncaught ErrorException: proc_get_status() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/symfony/process/Process.php:1279
解决方法:
打开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
找到proc_open,proc_get_status并删除即可
laravel新建应用报类似错误,处理方法一样
Crafting application...[Symfony\Component\Process\Exception\RuntimeException]
The Process class relies on proc_open, which is not available on your PHP installation.