composer安装yii时报错:The Process class relies on proc_open, which is not


laravel异常:[Symfony Component Process Exception RuntimeException] The Process class relies on proc_open, which is not available on your PHP installation

 
#laravel new blog
Crafting application...
                                                                                           
  [Symfony\Component\Process\Exception\RuntimeException]                                   
  The Process class relies on proc_open, which is not available on your PHP installation.
 
解决方法:
打开php.ini,并搜索disable_functions指令,找到类似如下内容:
disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_get_status,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
 
找到proc_open并删除即可。

你可能感兴趣的:(php)