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

xvscode發表於2018-03-25

在用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。

相關文章