Timeout on Apache / script

I have a script that needs to run for an hour or so, I have set the server connect script timeout to 3600 and set the max execution time to 3600 in my .user.ini file on my web server. I am still getting a 504 gateway timeout error after 10 minutes, ie 600.
Am I missing another place to change somewhere?

Community Page
Last updated: