TL;DR If a web request shells out to a slow CLI ( docker , kubectl , rsync …), move it to a queued job — PHP-FPM/nginx will kill it at ~30s anyway. Processes spawned from an HTTP worker inherit almost no environment : no HOME , a bare PATH . Tools that read ~/.
Source: [Dev.to](https://dev.to/nasrulhazim/two-gotchas-when-your-laravel-app-shells-out-to-a-cli-2n2l)