Hi, I use Pi-hole with much joy.
I am trying to install Pi-hole now in unattended mode, but when it finishes I unfortunately only get "403 - Forbidden" in the browser.
I install using the following commands:
setupVars=/etc/pihole/setupVars.conf
if [ -e "${setupVars}" ]; then
sed -i.install.bak '/PIHOLE_INTERFACE/d;/IPV4_ADDRESS/d;/IPV6_ADDRESS/d;/PIHOLE_DNS_1/d;/PIHOLE_DNS_2/d;/QUERY_LOGGING/d;/INSTALL_WEB/d;' "${setupVars}"
else
mkdir -p /etc/pihole
touch "${setupVars}"
fi
{
echo "PIHOLE_INTERFACE=eth0"
echo "IPV4_ADDRESS=192.168.1.99"
echo "IPV6_ADDRESS="
echo "PIHOLE_DNS_1=8.8.8.8"
echo "PIHOLE_DNS_2=8.8.4.4"
echo "QUERY_LOGGING=true"
echo "INSTALL_WEB=true"
}>> "${setupVars}"
cd /etc/pihole
wget -O basic-install.sh https://install.pi-hole.net
chmod +x basic-install.sh
./basic-install.sh --unattended
The install log shows no problems and pihole -d
shows
chown: invalid group: ‘root:pihole’
which might be a problem and
::: /etc/pihole/blacklist.txt not found!
::: /etc/pihole/adlists.list not found!
My debug token is 51dn42afj0
Also if I run curl -I localhost:80/
I get
HTTP/1.1 404 Not Found
X-Pi-hole: A black hole for Internet advertisements.
Content-Type: text/html
Content-Length: 345
Date: Wed, 05 Apr 2017 06:26:15 GMT
Server: lighttpd/1.4.35
and curl -I localhost/admin
HTTP/1.1 301 Moved Permanently
Location: http://localhost/admin/
Date: Wed, 05 Apr 2017 06:27:34 GMT
Server: lighttpd/1.4.35
while in the browser I get a 403 error.
Thanks!