Laravel installed, but connection is reset / No data received

牧云@^-^@ 提交于 2019-12-01 18:05:46

Turning off XCache solved it for me.

Same thing still holds for Laravel 5 and when using opcache instead of xcache. When opcache is enabled I get this error. If I put

php_flag opcache.enable Off

at the top of my. htaccess file, the site loads perfectly.

This is a known problem, you will need to turn off XCache in your .htaccess like so:

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

More information: http://laravel.io/forum/08-01-2014-laravel-42-is-conflict-with-php5-xcache-module

We fixed this problem by upgrading PHP to 5.5.22 (5.5.27 now). We had this problem with OPCache in combination with PHP 5.5.11.

Thanks to this post: https://laracasts.com/discuss/channels/general-discussion/opcache-issues

I was having the connection reset with Laravel 4.

The problem was that I was using blade multiline comments in the views.

{{-- 

  line 1

  line 2 

  ....

--}}

When I got rid of that comments the problem of the connection reset was solved.

I'm using blade comments but single line.

{{-- line1 --}

And it's working fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!