403 forbidden, first install

just installed on old install of Raspbian GNU/Linux 8 (jessie), I know it is not on the supported list.

changing the dns on my laptop to the PI's ip works, but i cannot access the web-interface.
and i typing "pihole", responds: "command not found" ?!?!

do I need to set it up on a supported distro or can it work?

Can you get us the output from la -lac /usr/local/bin and ls -lac /opt/pihole? And finally is there an install log file in /etc/pihole?

ls -lac /usr/local/bin
total 4
drwxrwsr-x 2 root staff 1024 Feb 9 19:58 .
drwxrwsr-x 10 root staff 1024 Feb 18 2015 ..
-rwxr-xr-x 1 root staff 232 Feb 9 19:58 easy_install
-rwxr-xr-x 1 root staff 232 Feb 9 19:58 easy_install-2.7

ls -lac /opt/pihole
ls: cannot access /opt/pihole: No such file or directory

/etc/pihole is empty

Raspbian Jessie is definitely on the supported list of Operating System. Can you run the curl command again and capture a copy of what is printed to screen? You can run the installer multiple times, it's intelligent enough to not overwrite existing settings without asking for your permission first if it finds that there is an install on the Pi already.

root@raspberrypi:/# curl -sSL https://install.pi-hole.net | bash
:::
::: You are root.
::: Verifying free disk space...
:::
::: Updating local cache of available packages... done!
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with Pi-hole installation...
::: Checking for apt-utils... installed!
::: Checking for debconf... installed!
::: Checking for dhcpcd5... installed!
::: Checking for git... installed!
::: Checking for iproute2... installed!
::: Checking for whiptail... installed!
:::
::: Stopping dnsmasq service... done.
:::
::: Stopping lighttpd service... done.
::: Using OpenDNS servers.
::: Static IP already configured
::: IPv4 address: 192.168.1.111/24
::: IPv6 address:
::: Web Interface On.
::: Logging On.
:::
::: Checking for existing repository...
::: Updating repo in /etc/.pihole... done!
done!
:::
::: Checking for existing repository...
::: Updating repo in /var/www/html/admin... done!
done!
::: Checking for bc... installed!
::: Checking for cron... installed!
::: Checking for curl... installed!
::: Checking for dnsmasq... installed!
::: Checking for dnsutils... installed!
::: Checking for iputils-ping... installed!
::: Checking for lsof... installed!
::: Checking for netcat... installed!
::: Checking for sudo... installed!
::: Checking for unzip... installed!
::: Checking for wget... installed!
::: Checking for lighttpd... installed!
::: Checking for php5-common... added to install list!
::: Checking for php5-cgi... added to install list!
root@raspberrypi:/#

The install is not complete. You should be presented with a final screen that shows all the details of the installation process. Can you run the following, and just paste up the last 10 lines or so of the output?

 curl -sSL https://install.pi-hole.net | sudo bash -x

That will produce a LOT of text, but we are just interested in the last bit right before the script drops out and returns you to the command prompt without any information as to why it stopped. The bash -x increases the verbose level of the process, it will look odd, but that's what we want.

  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for php5-common...'
    ::: Checking for php5-common...+ dpkg-query -W '-f=${Status}' php5-common
  • grep 'ok installed'
  • echo ' added to install list!'
    added to install list!
  • installArray+=("${i}")
  • for i in '"${argArray1[@]}"'
  • echo -n '::: Checking for php5-cgi...'
    ::: Checking for php5-cgi...+ dpkg-query -W '-f=${Status}' php5-cgi
  • grep 'ok installed'
  • echo ' added to install list!'
    added to install list!
  • installArray+=("${i}")
  • [[ 2 -gt 0 ]]
  • debconf-apt-progress -- apt-get --yes --no-install-recommends install php5-common php5-cgi
    root@raspberrypi:~#

Okay, what happens when you try to run sudo apt-get install --no-install-recommends php5-common php5-cgi?

root@raspberrypi:~# sudo apt-get install --no-install-recommends php5-common php5-cgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-cgi is already the newest version.
php5-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up php5-common (5.6.29+dfsg-0+deb8u1) ...

Creating config file /etc/php5/mods-available/pdo.ini with new version
php5_invoke: Enable module pdo for cli SAPI
php5_invoke: Enable module pdo for cgi SAPI

Creating config file /etc/php5/mods-available/opcache.ini with new version
php5_invoke: Enable module opcache for cli SAPI
php5_invoke: Enable module opcache for cgi SAPI
Setting up php5-json (1.3.6-1) ...
php5_invoke: Enable module json for cli SAPI
php5_invoke: Enable module json for cgi SAPI
Setting up php5-cli (5.6.29+dfsg-0+deb8u1) ...
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar5 to provide /usr/bin/phar (phar) in auto mode

Creating config file /etc/php5/cli/php.ini with new version
Setting up php5-cgi (5.6.29+dfsg-0+deb8u1) ...
update-alternatives: using /usr/bin/php5-cgi to provide /usr/bin/php-cgi (php-cgi) in auto mode
update-alternatives: using /usr/lib/cgi-bin/php5 to provide /usr/lib/cgi-bin/php (php-cgi-bin) in auto mode

Creating config file /etc/php5/cgi/php.ini with new version
root@raspberrypi:~#

Now try the curl | bash -x again and lets see if it fails in the same place. php upgrades can be problematic as they sometimes require user interaction to get installed fully. This is helping us tremendously by the way so thank you for helping us out.

seems to have finished the installation this time..

finished whit this:
::: The install log is located at: /etc/pihole/install.log

thanks, you are also helping me alot!

Okay, you should be all set. You can run a pihole -d if you'd like just to check and make sure the functions are all working correctly.

all seems to be in order

many thanks

A post was split to a new topic: Lighttpd 403 admin page