Did the following, but I dont expect it to survive after an update. Do it at your own risk and make backup of modified files. This is my custom php-fpm config for my needs, so it may not be suitable for your site. Read about it before changing mode and values.
Modified files...