Aktuelles
Digital Eliteboard - Das Digitale Technik Forum

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

IPC + Pi Hole auf dem Raspi

Oder die Ausgabe von sudo service lighttpd status
Wie Axel schrieb, läuft bei der lighttpd nicht
 
Code:
pi@raspberrypi:~ $ sudo service lighttpd status
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-04-30 12:14:13 CEST; 14min ago
  Process: 3021 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
  Process: 3008 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 3021 (code=exited, status=255)

Apr 30 12:14:13 raspberrypi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Apr 30 12:14:13 raspberrypi systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Apr 30 12:14:13 raspberrypi systemd[1]: Stopped Lighttpd Daemon.
Apr 30 12:14:13 raspberrypi systemd[1]: lighttpd.service: Start request repeated too quickly.
Apr 30 12:14:13 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.
Apr 30 12:14:13 raspberrypi systemd[1]: lighttpd.service: Unit entered failed state.
Apr 30 12:14:13 raspberrypi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
pi@raspberrypi:~ $
 
Zuletzt bearbeitet von einem Moderator:
Hi,

Active: failed (Result: exit-code) since Tue 2019-04-30 12:14:13 CEST; 14min ago
Process: 3021 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
Process: 3008 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)

Da scheint was mit der lighthttpd.conf nicht zu passen.

Poste die mal.

Gruß
 
Da habe ich eigentlich nur den Port auf 82 geändert und sonst nichts.

Code:
# 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.
#
# Lighttpd config for Pi-hole
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.

###############################################################################
#     FILE AUTOMATICALLY OVERWRITTEN BY PI-HOLE INSTALL/UPDATE PROCEDURE.     #
# ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE #
#                                                                             #
#              CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE:              #
#                         /etc/lighttpd/external.conf                         #
###############################################################################

server.modules = (
        "mod_access",
        "mod_accesslog",
        "mod_auth",
        "mod_expire",
        "mod_compress",
        "mod_redirect",
        "mod_setenv",
        "mod_rewrite"
)

server.document-root        = "/var/www/html"
server.error-handler-404    = "pihole/index.php"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 82
accesslog.filename          = "/var/log/lighttpd/access.log"
accesslog.format            = "%{%s}t|%V|%r|%s|%b"

index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny             = ( "~", ".inc", ".md", ".yml", ".ini" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"

# Prevent Lighttpd from enabling Let's Encrypt SSL for every blocked domain
#include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
 
Zuletzt bearbeitet von einem Moderator:
Hi,

ich sehe gerade keinen Fehler(?).

Poste mal die /var/log/lighttpd/error.log

Gruß
 
die ist komplett leer.

wenn ich peer FTP auf den Pi gehe gibt es dieses Verzeichnis auch nicht und dementsprechend auch nicht die Datei.

So ich habe nun mal händisch das Verzeichnis und die Datei error.log erstellt und die Berechtigungen entsprechend angepasst. Im Anschluss noch mal den Service lighttpd neu gestartet und jetzt steht auch was im log-file.
Code:
2019-04-30 13:00:25: (log.c.217) server started
2019-04-30 13:00:25: (log.c.171) opening errorlog '/var/log/lighttpd/access.log' failed: Permission denied
2019-04-30 13:00:25: (server.c.1269) Configuration of plugins failed. Going down.
2019-04-30 13:00:27: (log.c.217) server started
2019-04-30 13:00:27: (log.c.171) opening errorlog '/var/log/lighttpd/access.log' failed: Permission denied
2019-04-30 13:00:27: (server.c.1269) Configuration of plugins failed. Going down.
2019-04-30 13:00:29: (log.c.217) server started
2019-04-30 13:00:29: (log.c.171) opening errorlog '/var/log/lighttpd/access.log' failed: Permission denied
2019-04-30 13:00:29: (server.c.1269) Configuration of plugins failed. Going down.
2019-04-30 13:00:31: (log.c.217) server started
2019-04-30 13:00:31: (log.c.171) opening errorlog '/var/log/lighttpd/access.log' failed: Permission denied
2019-04-30 13:00:31: (server.c.1269) Configuration of plugins failed. Going down.
2019-04-30 13:00:32: (log.c.217) server started
2019-04-30 13:00:32: (log.c.171) opening errorlog '/var/log/lighttpd/access.log' failed: Permission denied
2019-04-30 13:00:32: (server.c.1269) Configuration of plugins failed. Going down.

Nachdem daraus ersichtlich wird das im auch noch die access.log fehlt habe ich diese auch händisch erstellt und die Berechtigungen angepasst.
Im Anschluss lighttpd neu gestartet und es läuft.
Code:
root@raspberrypi /var/log/lighttpd > service lighttpd status
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-04-30 13:05:32 CEST; 38s ago
  Process: 14775 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 14788 (lighttpd)
   CGroup: /system.slice/lighttpd.service
           ├─14788 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
           ├─14816 /usr/bin/php-cgi
           ├─14819 /usr/bin/php-cgi
           ├─14820 /usr/bin/php-cgi
           ├─14821 /usr/bin/php-cgi
           └─14822 /usr/bin/php-cgi

Apr 30 13:05:31 raspberrypi systemd[1]: Starting Lighttpd Daemon...
Apr 30 13:05:32 raspberrypi systemd[1]: Started Lighttpd Daemon.
root@raspberrypi /var/log/lighttpd >

keine Ahnung was bei der installation schlief gelaufen ist aber mit diesen beiden Änderungen komme ich jetzt zumindest auf das WebIF.
Danke für eure Unterstützung.

gruß ChrisChros
 
Zuletzt bearbeitet:
Ok Kommando zurück.
nach dem Neustart von dem Pi ist das Log-Verzeichnis verschwunden und somit auch die beiden darin enthaltenen Dateien und der Service startet wieder nicht.
Wie kann ich das dauerhaft erstellen?

ich hatte das wie folgt versucht:
Code:
pi@raspberrypi:~ $ su
Password:
root@raspberrypi /home/pi > cd /var/log
root@raspberrypi /var/log > mkdir lighttpd
root@raspberrypi /var/log > cd lighttpd
root@raspberrypi /var/log/lighttpd > touch access.log
root@raspberrypi /var/log/lighttpd > touch error.log
root@raspberrypi /var/log/lighttpd > chmod -v 777 access.log
mode of 'access.log' changed from 0644 (rw-r--r--) to 0777 (rwxrwxrwx)
root@raspberrypi /var/log/lighttpd > chmod -v 777 error.log
mode of 'error.log' changed from 0644 (rw-r--r--) to 0777 (rwxrwxrwx)
root@raspberrypi /var/log/lighttpd > /etc/init.d/lighttpd restart
[ ok ] Restarting lighttpd (via systemctl): lighttpd.service.
root@raspberrypi /var/log/lighttpd > service lighttpd status
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-04-30 13:26:46 CEST; 8s ago
  Process: 2076 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 2087 (lighttpd)
   CGroup: /system.slice/lighttpd.service
           ├─2087 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
           ├─2114 /usr/bin/php-cgi
           ├─2116 /usr/bin/php-cgi
           ├─2117 /usr/bin/php-cgi
           ├─2118 /usr/bin/php-cgi
           └─2119 /usr/bin/php-cgi

Apr 30 13:26:45 raspberrypi systemd[1]: Starting Lighttpd Daemon...
Apr 30 13:26:46 raspberrypi systemd[1]: Started Lighttpd Daemon.
root@raspberrypi /var/log/lighttpd >
 
Zuletzt bearbeitet von einem Moderator:
meinst du so?
Code:
proc            /proc           proc    defaults          0       0
PARTUUID=3626d381-01  /boot           vfat    defaults          0       2
PARTUUID=3626d381-02  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
tmpfs           /tmp                     tmpfs    size=100M         0       0
tmpfs           /var/tmp                 tmpfs    size=20M          0       0
# tmpfs           /var/log                 tmpfs    size=70M          0       0
# tmpfs           /var/cache/apt/archives  tmpfs    size=150M         0       0
 
Zuletzt bearbeitet von einem Moderator:
frage mal hier:
RPI 3B mit Raspian Buster,zusätzlich IPC,PIVPN und Pihole.
RPI feste IP, PC feste IP durch Router (FB 6590), im Router DNS Cloudfare und lokaler DNS-Server = RPI Pihole, zusätzlich
DNS-Rebind-Schutz Pihole, Webif Pihole Port auf 81 geändert. Bin mir unsicher wie die Weboberfläche für Pihole auszusehen hat und zwar für DNS
 

Anhänge

Du musst angemeldet sein, um die Anhangsliste zu sehen.
Zurück
Oben