if you use web interface then the owner of the files will be the user that web server is running with, right?
if you cannot work on this (I am not sure if you can set up umask or so) then you can always put in crontab every minute the command to change the permissions - but I am sure it has to be possible on the apache config
On the Raspberry Pi forum I found this solution:
I uninstalled PHP 8, did update Pihole (pihole -up) successfully and kicked the RP 4 and after the reboot it ran flawlessly using PHP 7.4.
Is there a way to install a complete PHP 8 with builtin JSON ?