Jose
August 30, 2020, 5:06pm
1
When I try to define a domain at white list pihole say "attempt to write a readonly database".
I try to unistall an install but say the same.
I am using nginx
instead of lighttpd
because I use this for other uses
Debug Token:
https://tricorder.pi-hole.net/a8s1u4qiuy
You're likely missing the right permissions, packages and/or group assignments
https://docs.pi-hole.net/guides/nginx-configuration/
Jose
August 31, 2020, 7:02pm
3
I Try this but is the same. Say that is read only.
Have you searched the forum for the issue and nginx?
Does this help:
Finally got it to work!
I went through each directory for pihole and looked at the ownership/group of each file. Here's what I found:
The ownership for /var/www/html/admin/scripts was www-data:
drwxr-xr-x 4 www-data www-data 4096 Mar 7 14:09 scripts
Within the scripts directory, the ownership for /var/www/html/admin/scripts/pi-hole was also www-data:
drwxr-xr-x 4 www-data www-data 4096 Mar 7 14:09 pi-hole
As well as the directories inside js and php
drwxr-xr-x 2 www-data www-data 4096…
Okay, so it seems you are both running non-standard configurations. Both times, your web server user is lacking group membership in the group pihole.
Not sure which user your web servers are running as (typical for lighttpd is www-data). Try to find out which is the correct web server user and add it to group pihole. Thereafter, restart your web server and try again. If this is not sufficient to communicate the new group membership (it should be), you might have to restart your system.
Jose
September 1, 2020, 8:47pm
5
Thanks.
At the end with the indicated post you can fix it. Not as indicated in these but including the user www-data in the group pihole and the user pihole in the group www-data.
The one suggested in the post did not work for me but doing it double did.
system
Closed
September 22, 2020, 9:19pm
7
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.