504 error when open the php page first time

Viewed 82

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.

  1. Ubuntu 16.0
  2. Wordpress
  3. Php7.3
  4. database MySQL 5.8
  5. 755 permission given for folders
  6. Folder owner www-data:www-data
  7. Sucuri firewall
  8. Stackpath
  9. 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?

1 Answers

There is high chance that you didn't whitelist Stackpath IP ranges on Sucuri and Sucuri is blocking requests from Stackpath IPs

Related