Hi everyone, here's another noob trying to access the configuration page of the PiHole I just installed. I couldn't find any post relating to my setup. Here we go:
Mac running PiHole successfully on docker with Apache server. Also port 80 was in use (I think by Homebridge) so I set it to 81. My guess is that the problem lies within the fact lighttpd wasn't used by default on my pc and that port 80 was used by another service.
The pihole -r or pihole -d commands on Terminal give me the command not found result. The ones that do work give me the following results: curl -i http://192.168.1.35/admin
HTTP/1.1 404 Not Found
Date: Sun, 07 Jul 2024 08:39:58 GMT
Server: Apache/2.4.59 (Unix)
Content-Length: 196
Content-Type: text/html; charset=iso-8859-1
Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
pihole -d
or do it through the Web interface:
Tools > Generate Debug Log
And please also share your docker-compose file or docker run script for your Pihole container.
Thanks for the quick reply. However, when I enter the pihole -d command Terminal gives me the following prompt: zsh: command not found: pihole. I can't access the web interface so unable to generate a debug log.
I modified the docker compose file but the Terminal now gives: zsh: command not found: 1.0.0.1
I paid attention to punctuation but it won't run like this: docker run -d --name pihole -e ServerIP=192.168.1.35 -e TZ=Europe/Brussels -e WEBPASSWORD=password -e PIHOLE_DNS_=1.1.1.1;1.0.0.1 -p 81:80 -p 53:53/tcp -p 53:53/udp -p 443:443 -v ~/pihole/:/etc/pihole/ --dns=127.0.0.1 --dns=1.1.1.1 --cap-add=NET_ADMIN --restart=unless-stopped pihole/pihole:latest
Gonna try the first configuration but with the -p 81:80 and come back to you
Got it working by removing 127.0.0.1 in my host wifi DNS settings.
However, only by using the deprecated DNS1/2 script from earlier.
Any idea why Terminal gives the zsh: command not found: 1.0.0.1 when trying the PIHOLE_DNS_=1.1.1.1;1.0.0.1 line?
The values need to be separated by semicolons (;), but you used a colon. This will fail.
You need to pay attention to the quotation marks:
The text above is using "Curly quotation marks" (“ and ”).
Do not copy/paste text with this marks.
They are not interpreted as quotes in a terminal window.
You need to use the regular quotation marks: (").
PIHOLE_DNS_="1.1.1.1;1.0.0.1" ### Correct quotation marks
PIHOLE_DNS_=“1.1.1.1;1.0.0.1” ### Wrong quotation marks
# This will be interpreted as 2 commands separated by a semicolon:
PIHOLE_DNS_=“1.1.1.1; # Command 1
1.0.0.1” # Command 2
Wow great attention to detail! Got the script working thank you guys @Bucking_Horn@rdwebdesign if you send me your email in PM I'll make it up to you. Cheers