Php 尝试运行artisan dump autoload时出现proc_open错误
当我尝试运行php artisan dump autoload时,出现以下错误:Php 尝试运行artisan dump autoload时出现proc_open错误,php,ubuntu,laravel,composer-php,Php,Ubuntu,Laravel,Composer Php,当我尝试运行php artisan dump autoload时,出现以下错误: 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 availabl
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#
我在数字海洋上使用Ubuntu 12.10 x64
有什么想法吗?您的php.ini中似乎禁用了
proc\u open
。通常是出于安全原因
一定要在php.ini中搜索disable_functions
指令,并找出proc_open
是否在该列表中。或者尝试使用函数\u exists('proc\u open')
,这将返回FALSE
可能重复:Laravel 6及更高版本(过程打开错误) 这是因为在调试模式下启用了Flare错误报告服务,因此有一个解决方法 发布flare配置文件
php artisan供应商:发布--tag=flare配置
在config/flare.php中
更新
'reporting' => [
'anonymize_ips' => true,
'collect_git_information' => false,
'report_queries' => true,
'maximum_number_of_collected_queries' => 200,
'report_query_bindings' => true,
'report_view_data' => true,
],
'send_logs_as_events' => false,