The connection was reset with Laravel 7 also 8

  connection-reset, laravel, php

I have a problem with a Laravel application. When serving the app, does not matter if its with >>php artisan serve<< or Apache, the application works at first, but then breaks with "The connection was reset". I looked at the apache logs, path is /var/log/apache2/error.log, there i see:

AH00169: caught SIGTERM, shutting down
AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
AH00094: Command line: '/usr/sbin/apache2'
AH00171: Graceful restart requested, doing restart

php artisan serve log.:

[Fri Jun 11 00:34:36 2021] Accepted
[Fri Jun 11 00:34:36 2021] Closing
Environment modified. Restarting server...
[Fri Jun 11 00:34:36 2021] PHP 7.4.3 Development Server ( started

I did edit php.ini, disabled opcache as so opcache.enable=0.
Also added below code at the start of .htaccess

php_flag xcache.cacher Off
php_flag xcache.size 0
php_flag xcache.stat Off

Any advice on where to get additional logs or what are possible causes. Thanks

Source: Laravel

Leave a Reply