Pi-hole no web interface access and lighttpd.service failed to start

OK, I think I found the problem. Permissions in /var/log$ sudo ls -la lighttpd/

total 4320
drwxr-x--- 2 root     root        4096 Nov  6 13:52 .
drwxr-xr-x 8 root     root        4096 Nov  6 00:00 ..
-rw-r--r-- 1 root     root     4408939 Nov  3 23:32 access.log
-rwxrwxrwx 1 www-data www-data     122 Nov  6 10:36 error.log

did a

orangepione@orangepizero:/var/log$ sudo chown -R www-data:www-data lighttpd/
orangepione@orangepizero:/var/log$ sudo ls -la lighttpd/

total 4320
drwxr-x--- 2 www-data www-data    4096 Nov  6 13:52 .
drwxr-xr-x 8 root     root        4096 Nov  6 00:00 ..
-rw-r--r-- 1 www-data www-data 4408939 Nov  3 23:32 access.log
-rwxrwxrwx 1 www-data www-data     122 Nov  6 10:36 error.log

and than

/var/log$ sudo service lighttpd restart
orangepione@orangepizero:/var/log$ sudo systemctl status lighttpd -l

● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2018-11-06 14:15:42 WIB; 19s ago
  Process: 11851 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/S
 Main PID: 11861 (lighttpd)
    Tasks: 6 (limit: 4915)
   CGroup: /system.slice/lighttpd.service
           ├─11861 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
           ├─11871 /usr/bin/php-cgi
           ├─11872 /usr/bin/php-cgi
           ├─11873 /usr/bin/php-cgi
           ├─11874 /usr/bin/php-cgi
           └─11875 /usr/bin/php-cgi

Nov 06 14:15:42 orangepizero systemd[1]: Starting Lighttpd Daemon...
Nov 06 14:15:42 orangepizero systemd[1]: Started Lighttpd Daemon.

Web interface accessible, did a reboot and still running, log files refreshing too,

Thanks to @Mcat12 @RamSet and @DanSchaper for great help and patience with me(still a noob) and the problem.

1 Like