I’ve found this problem in the past, but forgot to mention it.
[09-Nov-2022 10:47:00] WARNING: [pool www] child 1358706, script ‘/var/www/openmtbmap.org/htdocs/index.php’ (request: “GET /index.php?s2member_file_download=10m/osx/gmapi_contours_europe10m.7z”) execution timed out (1250.592901 sec), terminating
[09-Nov-2022 10:47:00] WARNING: [pool www] child 1358706 exited on signal 15 (SIGTERM) after 2890.632954 seconds from start
See this warning - you expect there is something wrong with one of the following
max_execution_time = 27200
However if you set them to reasonable values - like 30000 (its in seconds)
you will still not solve this problem. Because somehow s2member requires a temp filesize for nginx equivalent or bigger to the size of the download.
the max_temp_file_size needs to be bigger or as big as your largest protected download. I have some 10-12GB downloads so I had to increase this to 13000M or bigger.
Also I think increase the read_timeout here (not sure if this is important too or not).
It must have something peculiar to do with the way s2member protects downloads - because googling this you will likely not find a solution.
In general it’s best to try to not protect downloads of big sizes with s2member - as no single browser supports a resume by default. The only way to resume s2member downloads is by using Free Download Manager with a browser plugin for pickup. Maybe some other download manager software are okay too - so far I only found FDM that works realiably for resume support. If s2member could be improved to offer resume for Chrome/Edge/Safari inbuilt resume support this would be great.