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?

Have you looked at httpd.conf for the “timeout” parameter?

Yeah, I have adjusted that one as well. Now I just get a different error so I know im on the right track.


I think I am just going to stop trying to track the progress of the operation for the user, and rather just fire the script and redirect to another page or something. The script runs in the background weather the page is open or not and the only thing that stops it currently is this re authentication stuff. So if the user opens the system and starts the process it runs for an hour or less if they do not have much mail. The problem is that if I do that then there is also no way I can think of to stop the script if the user actually wanted to.