# Restore Pi-Hole Address to /pihole

**URL:** https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230
**Category:** General Discussion
**Created:** [3 May 2017 13:56 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230 "2017-05-03T13:56:53Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Chester007](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/8491ac/32.png) [@Chester007](https://dietpi.com/forum/u/Chester007)
#### Post date: [3 May 2017 13:56 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/1 "2017-05-03T13:56:53Z")

</div>

Hey so I just upgraded my pihole to 3.0 and during the installation, I got an error regarding the web UI. after a few minutes of google search, I found out that the solution was to do

```nohighlight
git clone https://github.com/pi-hole/adminLTE.git /var/www/html/admin

```

After doing the line above and repairing the installation, I can only access the pihole dashboard through IP.ADDRESS/admin now instead of IP.ADDRESS/pihole which I really liked.

How can I change it back to /pihole?

Thanks!

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [3 May 2017 14:58 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/2 "2017-05-03T14:58:46Z")

</div>

> [@Chester007](#):
>
> After doing the line above and repairing the installation, I can only access the pihole dashboard through IP.ADDRESS/admin now instead of IP.ADDRESS/pihole which I really liked.
> 
> How can I change it back to /pihole?
> 
> Thanks!

Hi,

DietPi generates this symlink, we like it too 😉

> <https://github.com/Fourdee/DietPi/blob/master/dietpi/dietpi-software#L8233-L8234>

> ```plaintext
> 
> ```

```
		# - Create a symlink so users can use http://ip/pihole
		ln -sf /var/www/html/admin /var/www/pihole

```

```auto
>

How did you update PiHole? pihole -up?
```

---

<div class="post-metadata">

### Author: ![Chester007](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/8491ac/32.png) [@Chester007](https://dietpi.com/forum/u/Chester007)
#### Post date: [3 May 2017 20:51 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/3 "2017-05-03T20:51:40Z")

</div>

Sadly the command above didn’t work. I’m still getting a Website Blocked when I try to open /pihole  
And yes, I did pihole -up to update it

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [4 May 2017 14:58 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/4 "2017-05-04T14:58:08Z")

</div>

> [@Chester007](#):
>
> Sadly the command above didn’t work. I’m still getting a Website Blocked when I try to open /pihole  
> And yes, I did pihole -up to update it

Strange, does it say “Blocked by PiHole”?

Lets check status of /var/www

```plaintext
ls -lha /var/www
ls -lha /var/www/html

```

---

<div class="post-metadata">

### Author: ![Chester007](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/8491ac/32.png) [@Chester007](https://dietpi.com/forum/u/Chester007)
#### Post date: [4 May 2017 15:04 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/5 "2017-05-04T15:04:31Z")

</div>

> [@Fourdee](#):
>
> Strange, does it say “Blocked by PiHole”?

Yes it does

> [@Fourdee](#):
>
> Lets check status of /var/www
> 
> ```plaintext
> ls -lha /var/www
> ls -lha /var/www/html
> 
> ```

![](https://dietpi.com/forum/uploads/default/original/2X/f/f8ca252b63927e501d9fe53fc7dd6c6cf58eb0b4.png)

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [5 May 2017 12:19 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/6 "2017-05-05T12:19:39Z")

</div>

> [@Chester007](#):
>
> > [@Fourdee](#):
> >
> > Strange, does it say “Blocked by PiHole”?
> 
> Yes it does

Well thats bizarre, PiHole is blocking our symlink lol.

I couldn’t replicate this on a fresh installation today. So it must be an issue with the blocked sites list, do you have any custom entries?

---

<div class="post-metadata">

### Author: ![Chester007](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/8491ac/32.png) [@Chester007](https://dietpi.com/forum/u/Chester007)
#### Post date: [5 May 2017 12:47 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/7 "2017-05-05T12:47:45Z")

</div>

> [@Fourdee](#):
>
> Well thats bizarre, PiHole is blocking our symlink lol.
> 
> I couldn’t replicate this on a fresh installation today. So it must be an issue with the blocked sites list, do you have any custom entries?

Yes, my adlist contains some of wally3k’s collection of domains [https://wally3k.github.io/](https://wally3k.github.io/). All of which worked properly before the upgrade.

I went ahead and backed-up my current list and copied the default one from pi-hole’s github repo [https://github.com/pi-hole/pi-hole/blob/master/adlists.default](https://github.com/pi-hole/pi-hole/blob/master/adlists.default) and ran

```plaintext
pihole -g

```

Sadly there’s no difference with the result

UPDATE:  
Tried to reinstall Pi-Hole. After the installation process, IP.ADDRESS/pihole just displays a blank page while IP.ADDRESS/admin shows the admin UI

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [5 May 2017 16:54 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/8 "2017-05-05T16:54:11Z")

</div>

> [@Chester007](#):
>
> PDATE:  
> Tried to reinstall Pi-Hole. After the installation process, IP.ADDRESS/pihole just displays a blank page while IP.ADDRESS/admin shows the admin UI

Ok, sounds like the pihole symlink is missing, lets try and recreate it again:

```plaintext
rm -R /var/www/pihole
ln -sf /var/www/html/admin /var/www/pihole

```

Did you use DietPi-Software to uninstall, then install PiHole again?

---

<div class="post-metadata">

### Author: ![Chester007](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/8491ac/32.png) [@Chester007](https://dietpi.com/forum/u/Chester007)
#### Post date: [5 May 2017 17:44 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/9 "2017-05-05T17:44:38Z")

</div>

> [@Fourdee](#):
>
> Ok, sounds like the pihole symlink is missing, lets try and recreate it again:
> 
> ```plaintext
> rm -R /var/www/pihole
> ln -sf /var/www/html/admin /var/www/pihole
> 
> ```
> 
> Did you use DietPi-Software to uninstall, then install PiHole again?

Did the set of commands, still blank screen. And yes, I did use DietPi-Software to uninstall and reinstall

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [6 May 2017 11:03 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/10 "2017-05-06T11:03:09Z")

</div>

I think your lighttpd.conf has been overwritten during the PiHole update.

Assuming you are using the default Lighttpd webserver on DietPi:

Did you backup your lighttpd.conf before upgrading pihole, as per Updating PiHole::  
[https://dietpi.com/forum/t/dietpi-survey-information/32/1](https://dietpi.com/forum/t/dietpi-survey-information/32/1)

If not, reinstall lighttpd to regenerate the config should fix this:

```nohighlight
apt-get purge lighttpd -y
dietpi-software reinstall 84

```

---

<div class="post-metadata">

### Author: ![Chester007](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/8491ac/32.png) [@Chester007](https://dietpi.com/forum/u/Chester007)
#### Post date: [6 May 2017 12:52 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/11 "2017-05-06T12:52:11Z")

</div>

> [@Fourdee](#):
>
> I think your lighttpd.conf has been overwritten during the PiHole update.
> 
> Assuming you are using the default Lighttpd webserver on DietPi:
> 
> Did you backup your lighttpd.conf before upgrading pihole, as per Updating PiHole::  
> [https://dietpi.com/forum/t/dietpi-survey-information/32/1](https://dietpi.com/forum/t/dietpi-survey-information/32/1)
> 
> If not, reinstall lighttpd to regenerate the config should fix this:
> 
> ```plaintext
> apt-get purge lighttpd -y
> dietpi-software reinstall 84
> 
> ```

Restoring the lighttpd.conf from a previous backup did the trick! Thank you!  
Just wondering, I can still access the admin UI via the /admin address. Is that normal?

---

<div class="post-metadata">

### Author: ![k-plan](https://dietpi.com/forum/user_avatar/dietpi.com/k-plan/32/12_2.png) [@k-plan](https://dietpi.com/forum/u/k-plan)
#### Post date: [6 May 2017 15:41 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/12 "2017-05-06T15:41:33Z")

</div>

> [@Chester007](#):
>
> Just wondering, I can still access the admin UI via the /admin address. Is that normal?

Yes.

```plaintext
root@NanoPi-Neo:~# ls -lah /var/www/
insgesamt 88K
drwxrwxr-x 3 www-data www-data 4,0K Mai 6 16:07 .
drwxr-xr-x 13 root root 4,0K Mai 6 15:57 ..
lrwxrwxrwx 1 www-data www-data 19 Mai 6 16:07 admin -> /var/www/html/admin
-rwxrwxr-x 1 www-data www-data 38K Mär 19 11:06 apc.php
drwxrwxr-x 4 www-data www-data 4,0K Mai 6 16:06 html
-rwxrwxr-x 1 www-data www-data 68 Mai 6 16:07 index.html
-rwxrwxr-x 1 www-data www-data 3,3K Mär 4 18:55 index.lighttpd.html
-rwxrwxr-x 1 www-data www-data 23K Mär 19 11:06 opcache.php
-rwxrwxr-x 1 www-data www-data 20 Mär 19 11:06 phpinfo.php
lrwxrwxrwx 1 www-data www-data 19 Mai 6 16:07 pihole -> /var/www/html/admin

```

If you don’t like this, remove the symbolic link:

```plaintext
lrwxrwxrwx 1 www-data www-data 19 Mai 6 16:07 admin -> /var/www/html/admin

```

---

<div class="post-metadata">

### Author: ![Chester007](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/8491ac/32.png) [@Chester007](https://dietpi.com/forum/u/Chester007)
#### Post date: [6 May 2017 16:07 UTC](https://dietpi.com/forum/t/restore-pi-hole-address-to-pihole/1230/13 "2017-05-06T16:07:28Z")

</div>

> [@k-plan](#):
>
> > [@Chester007](#):
> >
> > Just wondering, I can still access the admin UI via the /admin address. Is that normal?
> 
> Yes.
> 
> ```plaintext
> root@NanoPi-Neo:~# ls -lah /var/www/
> insgesamt 88K
> drwxrwxr-x 3 www-data www-data 4,0K Mai 6 16:07 .
> drwxr-xr-x 13 root root 4,0K Mai 6 15:57 ..
> lrwxrwxrwx 1 www-data www-data 19 Mai 6 16:07 admin -> /var/www/html/admin
> -rwxrwxr-x 1 www-data www-data 38K Mär 19 11:06 apc.php
> drwxrwxr-x 4 www-data www-data 4,0K Mai 6 16:06 html
> -rwxrwxr-x 1 www-data www-data 68 Mai 6 16:07 index.html
> -rwxrwxr-x 1 www-data www-data 3,3K Mär 4 18:55 index.lighttpd.html
> -rwxrwxr-x 1 www-data www-data 23K Mär 19 11:06 opcache.php
> -rwxrwxr-x 1 www-data www-data 20 Mär 19 11:06 phpinfo.php
> lrwxrwxrwx 1 www-data www-data 19 Mai 6 16:07 pihole -> /var/www/html/admin
> 
> ```
> 
> If you don’t like this, remove the symbolic link:
> 
> ```plaintext
> lrwxrwxrwx 1 www-data www-data 19 Mai 6 16:07 admin -> /var/www/html/admin
> 
> ```

Ah I see, haven’t really noticed it before. Thanks anyway!
