I have a website which is build in php. When I open some page its shows me 504 error( HTTP ERROR 504 took too long to respond) fist time after reload its working fine for me.
Here are my server configuration
Two unbuntu server running behind the azure load balancer.
- Ubuntu 16.0
- Wordpress
- Php7.3
- database MySQL 5.8
- 755 permission given for folders
- Folder owner www-data:www-data
- Sucuri firewall
- Stackpath
- Load balancer
request flow : DNS-Stackpath (CDN)- Sucuri firewall - LB - Ubuntu VMs
I have added 0 as max_execution_time and 512 memory limit for both server php.ini file.
Can anybody help me to fix the issue?