How to troubleshooting a D7 website that doesn't load (Gateway Timeout)
I solved the problem disabling the Database logging module.

I had the same problem also in another website (D7 + Database logging module, solved disabling the Database logging module)

Hope this helps.