Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mohamm6d's avatar

Constantly Receiving ERR_EMPTY_RESPONSE

Hey all

Recently, I moved to MacOs and installed PHP via brew for my laravel project. What I am constantly facing is ERR_EMPTY_RESPONSE for some pages. after a very short while, it loads fine but the first browser shows this error page and it reloads itself in less than 1 second.

The issue is for when an ajax call is involved I always get ERR_EMPTY_RESPONSE for all ajax requests. once I click on the URL in the console. it works.

I tried to increase memory_limit but didn't work! any idea or any suggestion is very appreciated.

0 likes
2 replies
jlrdw's avatar

Is your request method correct?

Mohamm6d's avatar

@jlrdw thanks for the reply. Actually, it loads sometimes but not always. request, route and everything looks good, i am not sure if its sth with cache or so?

Please or to participate in this conversation.