尝试运行artisan dump-autoload时proc_open错误 [英] proc_open error when try to run artisan dump-autoload
本文介绍了尝试运行artisan dump-autoload时proc_open错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试运行php artisan dump-autoload时,出现此错误:
When I try to run php artisan dump-autoload, I got this error:
root@server:/var/mysite# php artisan dump-autoload
Generating optimized class loader
[Symfony\Component\Process\Exception\RuntimeException]
The Process class relies on proc_open, which is not available on your PHP installation.
dump-autoload
root@server:/var/mysite#
我在DigitalOcean上使用Ubuntu 12.10 x64.
I'm on Ubuntu 12.10 x64 on DigitalOcean.
有什么主意吗?
推荐答案
似乎在您的php.ini中禁用了proc_open
.通常出于安全原因.
It seems that the proc_open
is disabled in your php.ini. Usually for security reason.
为确保在php.ini中搜索disable_functions
指令,并找出proc_open
是否在该列表中.或尝试使用function_exists('proc_open')
,这应该返回FALSE
To be sure search the disable_functions
directive in your php.ini and find out if proc_open
is in that list. Or try with function_exists('proc_open')
, this should return FALSE
可能重复: laravel4作曲家安装过程中proc_open不可用错误
这篇关于尝试运行artisan dump-autoload时proc_open错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文