Sounds to me that there is some issues between your containers, make sure that there isn't any connection issues.
Check the password and username used in your .env vs your mysql server.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a route on my containerized production Laravel app that always times out yet the DB query is quite simple. I am able to run the query on MYSQL container with no issues. All other routes work well except this one. I have already run the following commands:
php artisan config:cache
php artisan route:cache
php artisan view:cache
I have increased the fastcgi_read_timeout to 60s:
location ~ \.php$ {
fastcgi_read_timeout 60s;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass app:9005;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
opcache is already installed and configured. Kindly advice on what else I need to check on.
@FireBlade If it sends back 0 bytes, then you have a time out of some kind, and that is most likely from the database. Comment out the database call and see what happens.
Please or to participate in this conversation.