php - The connection was reset with Laravel 7 also 8

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] 127.0.0.1:38974 Accepted
[Fri Jun 11 00:34:36 2021] 127.0.0.1:38974 Closing
Environment modified. Restarting server...
[Fri Jun 11 00:34:36 2021] PHP 7.4.3 Development Server (http://127.0.0.1:8000) started
I did edit php.ini, disabled opcache as soopcache.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
Answer
Solution:
i had the same problem.
try addingphp_flag opcache.enable Off
in your.htaccess
in the public directory (like Alberto said in the comments)
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: target class [commandmakecommand] does not exist.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.