Laravel [Symfony\Component\Process\Exception\RuntimeException] The Proc

在用Composer安装laravel时,出现以下问题:

[Symfony\Component\Process\Exception\RuntimeException]                                   
  The Process class relies on proc_open, which is not available on your PHP installation. 

解决方案:打开php.ini
搜索disable_functions找到proc_open并删除即可。

cd /usr/local/php/etc
vim php.ini
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

重启Nginx或Apache。

你可能感兴趣的:(Laravel)