laravel 上传到服务器提示:
The Process class relies on proc_open, which is not available on your PHP installation.
解决办法:
第一种:
修改php.ini 或 php.conf
找到disable_functions
,去掉proc_open
, proc_get_status
disable_functions = passthru,exec,system,chroot,chgrp,chown,shell_exec,ini_alter,ini_restore,dl,readlink,symlink,popepassthru,stream_socket_server,fsocket,popen
保存,重启PHP
第二种:
如果是虚拟控件,无法修改配置。可采用以下方法;
php artisan vendor:publish --tag=flare-config
修改config/flare.php中的
'collect_git_information' => true
为 'collect_git_information' => false
如下:
'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,
],
全部评论