Please follow the below template, it will help us to help you!
Expected Behaviour:
Wildcard is successfully added and blocked
Actual Behaviour:
Unable to add regex "(^|.)actionclassicgames.com$" to /etc/pihole/regex.list
Error message: file_put_contents(/etc/pihole/regex.list): failed to open stream:
Afaik you cant add a group to a group. Also the group webserver does not exist. I have checked which user apache is running from and it is pi. I tried to add pi the the group pihole and ensured that i made the file owned by user and group pihole. This still causes the error though so im not sure what else to do.
There's no official support for alternate web servers like apache or nginx, but you may still have a read through a community created guide on Configuring NGINX for Pi-hole and try to draw what analogies you can for your apache installation.
I am unable to reproduce this answer. I am unsure how you added on group to another without just adding each user. As stated previously I did try and give www-data perms by using pihole:www-data but it didnt make a difference.
usermod -a -G www-data pihole should only add the user www-data however this with permision 664 with is rw-rw-r rather than 644 which is rw-r-r did do the job. Thank you for all of your help it is much appriciated.