# 403 forbidden, first install

**URL:** <https://discourse.pi-hole.net/t/403-forbidden-first-install/2070>\
**Category:** Help\
**Created:** [March 7, 2017, 5:52pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070 "2017-03-07T17:52:22Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanix](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@shanix](https://discourse.pi-hole.net/u/shanix)\
**Post date:** [March 7, 2017, 5:52pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/1 "2017-03-07T17:52:23Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [March 7, 2017, 5:56pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/2 "2017-03-07T17:56:49Z")

</div>

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`?

---

<div class="post-metadata">

**Author:** ![shanix](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@shanix](https://discourse.pi-hole.net/u/shanix)\
**Post date:** [March 7, 2017, 6:06pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/3 "2017-03-07T18:06:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [March 7, 2017, 6:20pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/4 "2017-03-07T18:20:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![shanix](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@shanix](https://discourse.pi-hole.net/u/shanix)\
**Post date:** [March 7, 2017, 6:25pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/5 "2017-03-07T18:25:42Z")

</div>

root@raspberrypi:/# curl -sSL [https://install.pi-hole.net](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:/#

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [March 7, 2017, 6:28pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/6 "2017-03-07T18:28:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![shanix](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@shanix](https://discourse.pi-hole.net/u/shanix)\
**Post date:** [March 7, 2017, 6:33pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/7 "2017-03-07T18:33:53Z")

</div>

- 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:~#

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [March 7, 2017, 6:46pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/8 "2017-03-07T18:46:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shanix](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@shanix](https://discourse.pi-hole.net/u/shanix)\
**Post date:** [March 7, 2017, 6:48pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/9 "2017-03-07T18:48:30Z")

</div>

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:~#

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [March 7, 2017, 6:51pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/10 "2017-03-07T18:51:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![shanix](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@shanix](https://discourse.pi-hole.net/u/shanix)\
**Post date:** [March 7, 2017, 6:56pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/11 "2017-03-07T18:56:15Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [March 7, 2017, 6:57pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/12 "2017-03-07T18:57:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![shanix](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@shanix](https://discourse.pi-hole.net/u/shanix)\
**Post date:** [March 7, 2017, 7:04pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/13 "2017-03-07T19:04:33Z")

</div>

all seems to be in order

many thanks

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [July 2, 2019, 4:21pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/14 "2019-07-02T16:21:37Z")

</div>

A post was split to a new topic: [Lighttpd 403 admin page](https://discourse.pi-hole.net/t/lighttpd-403-admin-page/21338)

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [July 2, 2019, 4:21pm UTC](https://discourse.pi-hole.net/t/403-forbidden-first-install/2070/15 "2019-07-02T16:21:42Z")

</div>


