Laravel established but connection reset / no data

I use Digital Ocean as my server, I have a drop of Ubuntu running on my site on my website. But now I am creating "backend projects" where there is only a folder with test projects, which themselves are laravel projects. They are not related to the main laravel installation.

I installed it, all the files are there, if I go to www.mysite.com/projects/projectname , it shows:

it shows

But when I go to the link www.mysite,com/projects/projectname/public , it shows:

firefox

in firefox

chrome

in chrome

The site works fine on my laptop using moms. But not on the server?

If I look in charles (proxy manager), I get an error / error message Remote server closed the connection before sending response header

I am not familiar with this, please can someone explain how to overcome this problem?

+5
source share
5 answers

Disabling XCache resolved this for me.

+3
source

The same holds true for Laravel 5 when using opcache instead of xcache. When opcache is on, I get this error. If i put

 php_flag opcache.enable Off 

at the top of mine. htaccess file, the site loads fine.

+2
source

This is a known issue, you need to disable XCache in your .htaccess, for example:

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

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

+1
source

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

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

0
source

I had a reset connection with Laravel 4.

The problem was that I used multi-line blade comments in the views.

 {{-- line 1 line 2 .... --}} 

When I got rid of these comments, the reset communication problem was resolved.

I use click comments, but one line.

 {{-- line1 --} 

And it works great.

0
source

Source: https://habr.com/ru/post/1209689/


All Articles