Reinstall Lighttpd

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Deleted User 7758

Reinstall Lighttpd

Post by Deleted User 7758 »

Hi
I can't get lighttpd to start.

Code: Select all

sudo systemctl status lighttpd
[sudo] password for jon:
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2020-08-04 14:14:57 AEST; 9min ago
  Process: 1145 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
  Process: 1150 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)
 Main PID: 1150 (code=exited, status=255/EXCEPTION)

Aug 04 14:14:57 HC1 systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling restart.
Aug 04 14:14:57 HC1 systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Aug 04 14:14:57 HC1 systemd[1]: Stopped Lighttpd Daemon.
Aug 04 14:14:57 HC1 systemd[1]: lighttpd.service: Start request repeated too quickly.
Aug 04 14:14:57 HC1 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Aug 04 14:14:57 HC1 systemd[1]: Failed to start Lighttpd Daemon.
Can I reinstall it without interfering with Nextcloud and pihole?
Is there a tutorial on configuring virtual hosts for lighttpd that someone can recommend?
Deleted User 7758

Re: Reinstall Lighttpd

Post by Deleted User 7758 »

Reinstalled and I'm still unable to start Lighttpd

Code: Select all

jon@HC1:~$ sudo systemctl status lighttpd
[sudo] password for jon:
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2020-08-04 16:38:47 AEST; 34s ago
  Process: 1258 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
  Process: 1269 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)
 Main PID: 1269 (code=exited, status=255/EXCEPTION)

Aug 04 16:38:47 HC1 systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling restart.
Aug 04 16:38:47 HC1 systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Aug 04 16:38:47 HC1 systemd[1]: Stopped Lighttpd Daemon.
Aug 04 16:38:47 HC1 systemd[1]: lighttpd.service: Start request repeated too quickly.
Aug 04 16:38:47 HC1 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Aug 04 16:38:47 HC1 systemd[1]: Failed to start Lighttpd Daemon.
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: Reinstall Lighttpd

Post by Joulinar »

can you check error.log for some error messages.

Code: Select all

systemctl restart lighttpd.service
cat /var/log/lighttpd/error.log
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Deleted User 7758

Re: Reinstall Lighttpd

Post by Deleted User 7758 »

ok I found an error with a conf file and it is running now.
@Joulinar - do you know of a write up to get my domain working with my next cloud instance?
Last edited by Deleted User 7758 on Wed Aug 05, 2020 1:18 am, edited 1 time in total.
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: Reinstall Lighttpd

Post by Joulinar »

you mean something like this? viewtopic.php?p=25261#p25261
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Deleted User 7758

Re: Reinstall Lighttpd

Post by Deleted User 7758 »

Well, hopefully I can get this working without having to start over from scratch again.
I have ad domain name and a static IP, the instructions you linked to are for using no-ip.
Also, I have a vpn set up so I don't need to forward those ports.
When I go to ip/nextcloud, instead of seeing Nextcloud I see this
Screen Shot 2020-08-05 at 9.35.13 am.png
I'd like to get it set up as a subdomain but can't see anywhere in dietpi-config to do that.
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: Reinstall Lighttpd

Post by Joulinar »

if you have a VPN setup, you don't need any domain setup as you will connect locally on your network only.

Furthermore DietPi themselves is not offering any WebServer config tools or gui. If you like to manipulate the configuration files, it's up to you and needs to be done manually.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Deleted User 7758

Re: Reinstall Lighttpd

Post by Deleted User 7758 »

So you can't tell me why ip/nextcloud results in the pihole blocking page?

are pihole and nextcloud not able to be run both by the same web server?
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: Reinstall Lighttpd

Post by Joulinar »

Well they are able to run on the same host. Did you changed something on configuration files? could that be?
picture1.png
picture2.png
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply