Lighttpd cannot start after reboot

I don't use Ubuntu and I never did this before, but I think you can achieve the desired effect recreating the directory on lighttpd service start.

Try adding this code to lighttpd service file, if your OS uses systemd:

ExecStartPre=/bin/mkdir -p /run/lighttpd
ExecStartPre=/bin/chown www-data:www-data /run/lighttpd
2 Likes