在centos PHP7下安装laravel 5提示如下错误
[Symfony\Component\Process\Exception\RuntimeException]
The Process class relies on proc_open, which is not available on your PHP installation.
出现以上问题的原因:由于安全性问题proc_open函数被禁用了。
解决办法:
进入php.ini文件,找到disable_function=,删除proc_open函数,即可。
在一个国外论坛上看到的一个解决方法:
链接:http://www.2by2host.com/articles/php-errors-faq/disabled_proc_open/
Function proc_open is disabled. What to do?
I see the “Warning: proc_open() has been disabled for security reasons” message on my site. What should I do? How can I fix this?
Solution for the “proc_open disabled” issue
In order to eliminate this error message you need to do ONE of the following things:
- Remove the proc_open string from the disable_functions at php.ini* file
- Ask your hosting provider to remove the string above if you don’t have an access to the php.ini* file
- Change hosting provider which allows the running of the proc_open function.