Lighttpd Custom Container Crashing? Have no idea why
Added by tassiveman88 almost 4 years ago
I am not sure if I am allowed to discuss Docker since its not officially supported but I was hoping to get some feedback. Just to note, I am new to lighttpd (discovered it like 5 hours ago and want to ditch Apache)
I have a custom Dockerfile here: https://pastebin.com/raw/zKfjdXHN
My custom lighttpd.conf file: https://pastebin.com/raw/vJGQcFe3
For some reason, running it just exits the container and I feel there is an issue. However, I have no idea how to catch those logs before the container exists and I kinda feel doomed and wanted to ask for help here.
With my configuration (it is supposed to be a lighttpd conf hooked up to php7), what seems to be the problem?
One last thing, I understand the security risks involving chmodding those directories but I am trying very hard to run lighttpd as a NON root user so im testing the waters before beefing security. Security is not a concern, getting it to work right now is
Replies (2)
RE: Lighttpd Custom Container Crashing? Have no idea why - Added by gstrauss almost 4 years ago
For the directories that you told lighttpd to use, have you tried creating the directory paths in your Docker file?/var/cache/lighttpd/compress/
/var/cache/lighttpd/uploads/
/var/log/lighttpd/
/var/run/lighttpd/
RE: Lighttpd Custom Container Crashing? Have no idea why - Added by gstrauss almost 4 years ago
Also, if you comment out server.errorlog
in lighttpd.conf, errors will go to stderr and that might help you find the issues in your Docker environment.