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

joshdonnell's avatar

joshdonnell liked a comment+100 XP

4mos ago

I am having some issues when trying to utilise an encrypted environment file. Without it, deployments run successfully, and my app works fine.

However, when I deploy the encrypted env there are problems. I've tracked it (I think) to the fpmRuntime and encounter the following error.


{
"exception": {
   "class": "Symfony\Component\Console\Exception\CommandNotFoundException",
   "message": "The command "config:cache" does not exist.",
   "code": 0,
   "file": "/var/task/vendor/laravel/framework/src/Illuminate/Console/Application.php:161"
},
"aws_request_id": 
null
}

I've double and triple-checked that the file is encrypted correctly and that the encryption key is present, and all other relevant environment variables. I've stripped back the encrypted one to contain just one key for testing purposes, setting everything else through the vapor ui, and still have the same issue.

Has anyone experienced and managed to resolve this issue? Or even a different approach to try out would be much appreciated.

joshdonnell's avatar

joshdonnell wrote a reply+100 XP

4mos ago

Hey, @psizer10 I am also experiencing this exact issue with the same error too. Did you ever resolve this issue in the end?