Apache timeouts when debugging or back up with a plugin (more than 40-50 seconds)
Set a breakpoint and when hit you have 40 seconds until the servers closes the connection with 504 error.
System Details
-
Local Version: 10.0.0
-
Operating System (OS) and OS version: Windows
After an hour testing and guessing and the fact that it is not about apache timeout (TimeOut = 3600 doesn’t help) when discovered that php which do ob_flush() actually don’t die..
Here is the solution - add these to conf/apache/apache2.conf.hbs (some may be redundant but just in any case)
TimeOut 3600
ProxyTimeout 3600
FcgidIOTimeout 3600
FcgidBusyTimeout 3600
This will help anyone in these cases:
- debugging and timeout
- all sort of plugins like Duplicator for WordPress backups start to work without any problems.
Hope this will save some time of others with the same problem ![]()