Restore Pi-Hole Address to /pihole

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Restore Pi-Hole Address to /pihole

Post by Chester007 »

Fourdee wrote: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::
http://dietpi.com/phpbb/viewtopic.php?f ... rt=20#p174

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

Code: Select all

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?
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Restore Pi-Hole Address to /pihole

Post by k-plan »

Chester007 wrote:Just wondering, I can still access the admin UI via the /admin address. Is that normal?
Yes.

Code: Select all

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:

Code: Select all

lrwxrwxrwx  1 www-data www-data   19 Mai  6 16:07 admin -> /var/www/html/admin
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Restore Pi-Hole Address to /pihole

Post by Chester007 »

k-plan wrote:
Chester007 wrote:Just wondering, I can still access the admin UI via the /admin address. Is that normal?
Yes.

Code: Select all

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:

Code: Select all

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!
Post Reply