First time install on ubuntu 18.04 , can't reach admin webpage

Hello ,
I'm tryinh to run the pi-hole on my ubuntu 18.04 server
everything is update
the installation went without any problems
coulnd't enter the web interface
I have check the follwing:

  1. port 80 is open
 sudo netstat -tulpn | grep LISTEN
tcp        0      0 127.0.0.1:4711          0.0.0.0:*               LISTEN      4627/pihole-FTL
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      731/rpcbind
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      7238/lighttpd
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      4627/pihole-FTL
tcp        0      0 10.129.10.171:53        0.0.0.0:*               LISTEN      4627/pihole-FTL
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1081/sshd
tcp6       0      0 ::1:4711                :::*                    LISTEN      4627/pihole-FTL
tcp6       0      0 :::111                  :::*                    LISTEN      731/rpcbind
tcp6       0      0 :::80                   :::*                    LISTEN      7238/lighttpd
tcp6       0      0 ::1:53                  :::*                    LISTEN      4627/pihole-FTL
tcp6       0      0 fe80::17ff:fe05:9653:53 :::*                    LISTEN      4627/pihole-FTL
tcp6       0      0 :::22                   :::*                    LISTEN      1081/sshd
  1. pi hole is working
pihole status
  [✓] DNS service is listening
     [✓] UDP (IPv4)
     [✓] TCP (IPv4)
     [✓] UDP (IPv6)
     [✓] TCP (IPv6)

  [✓] Pi-hole blocking is enabled
  1. lighttpd is up and working
 systemctl status lighttpd.service
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-07-12 09:29:58 UTC; 9min ago
  Process: 7210 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 7238 (lighttpd)
    Tasks: 6 (limit: 4915)
   CGroup: /system.slice/lighttpd.service
           ├─7238 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
           ├─7249 /usr/bin/php-cgi
           ├─7253 /usr/bin/php-cgi
           ├─7254 /usr/bin/php-cgi
           ├─7255 /usr/bin/php-cgi
           └─7256 /usr/bin/php-cgi

Jul 12 09:29:58 pi-hole1 systemd[1]: Starting Lighttpd Daemon...
Jul 12 09:29:58 pi-hole1 systemd[1]: Started Lighttpd Daemon.
  1. it's seem that something is working
ubuntu@pi-hole1:~$ curl -I 127.0.0.1
HTTP/1.1 200 OK
Content-type: text/html; charset=UTF-8
Expires: Mon, 12 Jul 2021 09:39:57 GMT
Cache-Control: max-age=0
Date: Mon, 12 Jul 2021 09:39:57 GMT
Server: lighttpd/1.4.45

what else could it be ?
when I try to enter telnet from the server (127.0.0.1 or the IP 10.129.10.171)
I don't get a reply , also from outside

  1. I have check the firewall it's down
ubuntu@pi-hole1:~$ sudo ufw status
Status: inactive

I have run debug
Your debug token is: https://tricorder.pi-hole.net/80kghqhuem

I'm trying for 3 hours now (tried all kind of linux version 18.04,18.05 ,20.x) - I get the same problem in all of them..

last week I have install on pi-4 , work like a charm in less then 5 min


I have change the port to 8082
using

 sudo nano /etc/lighttpd/lighttpd.conf
server.port                 = 8082

and I can see it's working

 curl -I 127.0.0.1:8082
HTTP/1.1 200 OK
Content-type: text/html; charset=UTF-8
Expires: Mon, 12 Jul 2021 10:18:19 GMT
Cache-Control: max-age=0
Date: Mon, 12 Jul 2021 10:18:19 GMT
Server: lighttpd/1.4.45

added also this rule jsut to be sure
sudo ufw allow 8082/tcp

but still nothing , can't reach it

Thanks,

What is the output of the following command from the Pi terminal:

sudo systemctl status --full --no-pager lighttpd

this is ubuntu 18.04 (as I wrote in the title )

and this is the output

  sudo systemctl status --full --no-pager lighttpd
 ● lighttpd.service - Lighttpd Daemon
    Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2021-07-12 11:00:02 UTC; 2 days ago
  Main PID: 1117 (lighttpd)
     Tasks: 6 (limit: 4915)
    CGroup: /system.slice/lighttpd.service
            ├─1117 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
            ├─1161 /usr/bin/php-cgi
            ├─1193 /usr/bin/php-cgi
            ├─1194 /usr/bin/php-cgi
            ├─1195 /usr/bin/php-cgi
            └─1196 /usr/bin/php-cgi
 
 Jul 12 11:00:02 pi-hole1 systemd[1]: Starting Lighttpd Daemon...
 Jul 12 11:00:02 pi-hole1 systemd[1]: Started Lighttpd Daemon.

when I run this
curl -L -o code.html http://10.129.10.171:8082/admin
the same for
curl -L -o code.html http://127.0.0.1:8082/admin

I get the correct reply , I can see it's the pi-hole admin\gui page

<!doctype html>
<!-- Pi-hole: A black hole for Internet advertisements
*  (c) 2017 Pi-hole, LLC (https://pi-hole.net)
*  Network-wide ad blocking via your own hardware.
*
*  This file is copyright under the latest version of the EUPL.
*  Please see LICENSE file for your rights under this license. -->
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Security-Policy" content="default-src 'none'; base-uri 'none'; child-src 'self'; for$
    <!-- Usually browsers proactively perform domain name resolution on links that the user may choose to follow. $
    <meta http-equiv="x-dns-prefetch-control" content="off">
    <meta http-equiv="cache-control" content="max-age=60,private">
    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Pi-hole - pi-hole1</title>

    <link rel="apple-touch-icon" href="img/favicons/apple-touch-icon.png" sizes="180x180">
    <link rel="icon" href="img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
    <link rel="icon" href="img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
    <link rel="manifest" href="img/favicons/manifest.json">
    <link rel="mask-icon" href="img/favicons/safari-pinned-tab.svg" color="#367fa9">
    <link rel="shortcut icon" href="img/favicons/favicon.ico">
    <meta name="msapplication-TileColor" content="#367fa9">
    <meta name="msapplication-TileImage" content="img/favicons/mstile-150x150.png">
    <meta name="theme-color" content="#367fa9">
.
.
.
.
.
.
.

so everything should work , no ?
what else am I missing?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.