I use some plugins that through PHP write files in / wp-content / upload / direcory1. I noticed that PHP writes files with 600 permissions instead of 644 permissions as it should be.
The only way to write with 644 permissions is to go to the Virtualmin> Server Configuration> Website Option tab and change the PHP execution mode from fcgi-cgi to FPM and then and back to fcgi-cgi.
I wonder if it's a bug and if it can be fixed. I tried to put umask 0002 in the PHP config file but didn't get any results.
After a few hours the website crashes and the page shows this error
waiting for available sockets
System: CentOS Linux 8.2.2004 PHP 7.4 NGinx 1.14.1
Thanks for the attention.