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

Ritvarsz's avatar

503 service unavailable for a package when deploying on shared hosting

I've just deployed my site on shared hosting (I know, I know, it's sad) - everything works except my site analytics page, which uses https://github.com/spatie/laravel-analytics package.

When I call my analytics page, it loads for about a minute and returns a 503 service unavailable error. The server logs don't tell much either: [Thu Jun 27 15:28:44.571178 2019] [proxy_fcgi:error] [pid 1020436:tid 140318267639552] (70007)The timeout specified has expired: [client <myip>:50994] AH01075: Error dispatching request to :

Been digging at this error for a couple of hours now, any help would be highly appreciated :)

0 likes
5 replies
Ty's avatar

Remove the enablereuse=on option on your Proxy line, so that it reads

<Proxy fcgi://mywebsite/ retry=0>

See if this works. Not sure if you have access to do this or not.

Ritvarsz's avatar

@TY - Where is my proxy line? Basically I only have access to my .htaccess file, some basic Apache and php settings. (the usual cpanel stuff)

Ritvarsz's avatar
Ritvarsz
OP
Best Answer
Level 1

Looks like I found the answer. spatie/laravel-analytics package requires php version 7.2 or higher. My host has php 7.1.3.. I assume this is the reason that It doesn't work, and sadly, I can't test it because thats the highes version I can get.

Ty's avatar

if you have Cpanel Access then you need to configure your FastCGI timeout to be longer. The issue is with this and not on the laravel side of things.

Ritvarsz's avatar

@TY - Turns out I was wrong about the version. Got 7.2, but still getting errors. FastCGI timeout is already 60, so It's likely not the problem.

Please or to participate in this conversation.