当前位置:编程学习 > php >>

安装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.
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,