在 smarterasp.net 主机上上传 Laravel 网站

将laravel项目上传到托管显示登录界面正确但是当您输入用户名和密码并单击登录时,出现如下错误。


版本 laravel:6.0


错误是:


Process 类依赖于 proc_open,它在您的 PHP 安装中不可用。


(1/1) LogicException

The Process class relies on proc_open, which is not available on your PHP installation.


in Process.php line 143

at Process->__construct(array(), 'H:\\root\\home\\alwheeb-001\\www\\site1\\myeasiestexchange', null, null, 60.0)

in Process.php line 195

at Process::fromShellCommandline('git log --pretty=format:\'%H\' -n 1', 'H:\\root\\home\\alwheeb-001\\www\\site1\\myeasiestexchange')

in AddGitInformation.php line 51

at AddGitInformation->command('git log --pretty=format:\'%H\' -n 1')

in AddGitInformation.php line 25

at AddGitInformation->hash()

in AddGitInformation.php line 13

at AddGitInformation->handle(object(Report), object(Closure))

in Pipeline.php line 171

at Pipeline->Illuminate\Pipeline\{closure}(object(Report))

in AddSolutions.php line 28

at AddSolutions->handle(object(Report), object(Closure))

in Pipeline.php line 171

at Pipeline->Illuminate\Pipeline\{closure}(object(Report))

in AddQueries.php line 22

at AddQueries->handle(object(Report), object(Closure))

in Pipeline.php line 171

at Pipeline->Illuminate\Pipeline\{closure}(object(Report))

in AddDumps.php line 22

at AddDumps->handle(object(Report), object(Closure))

in Pipeline.php line 171

at Pipeline->Illuminate\Pipeline\{closure}(object(Report))

in AddLogs.php line 22

at AddLogs->handle(object(Report), object(Closure))

in Pipeline.php line 171

at Pipeline->Illuminate\Pipeline\{closure}(object(Report))

in AddEnvironmentInformation.php line 20

at AddEnvironmentInformation->handle(object(Report), object(Closure))

in Pipeline.php line 171

at Pipeline->Illuminate\Pipeline\{closure}(object(Report))

in SetNotifierName.php line 15

at SetNotifierName->handle(object(Report), object(Closure))

in Pipeline.php line 171

at Pipeline->Illuminate\Pipeline\{closure}(object(Report))

in AnonymizeIp.php line 17

at AnonymizeIp->handle(object(Report), object(Closure))


我怎么解决这个问题?托管是否支持 laravel 项目?


月关宝盒
浏览 127回答 1
1回答

慕森王

这是因为在调试模式下启用了 Flare 错误报告服务有一个解决方法。发布耀斑配置文件 php artisan vendor:publish --tag=flare-config并在 config/flare.php放'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,],
打开App,查看更多内容
随时随地看视频慕课网APP