On 2024/08/21 14:02, David Colburn wrote: > "$ cat /var/www/dev/null" > > Returns to the prompt. > > Here's this ... > > b7# rcctl -d start lighttpd > doing _rc_parse_conf > lighttpd_flags empty, using default >-f /etc/lighttpd.conf< > doing rc_check > lighttpd > doing rc_start > doing _rc_wait_for_start > doing rc_check > 2024-08-21 13:59:01: > (/usr/obj/ports/lighttpd-1.4.74-mysql/lighttpd-1.4.74/src/configfile.c.1840) > opening errorlog 'logs/error.log' failed: Permission denied
Well that is failing on writing /var/www/logs/error.log > 2024-08-21 13:59:01: > (/usr/obj/ports/lighttpd-1.4.74-mysql/lighttpd-1.4.74/src/server.c.1935) > Opening errorlog failed. Going down. > daemonized server failed to start; check error log for details > doing _rc_rm_runfile > (failed) > > And ... > > 2024-08-13 22:29:37: > (/usr/obj/ports/lighttpd-1.4.74-mysql/lighttpd-1.4.74/src/configfile.c.1891) > opening /dev/null failed: No such file or directory > 2024-08-13 22:29:37: > (/usr/obj/ports/lighttpd-1.4.74-mysql/lighttpd-1.4.74/src/server.c.1935) > Opening errorlog failed. Going down. And that is old > > On 8/21/24 12:46, Stuart Henderson wrote: > > On 2024/08/21 12:11, David Colburn wrote: > > > > On 2024/08/21 10:21, David Colburn wrote: > > > > > Notes: > > > > > > > > > > 1. I've read the manual entry, and multiple threads related to this, > > > > > more than once. > > > > > > > > > > 2. The “chroot location” as defined in /etc/lighttpd.conf. is > > > > > unchanged - /var/www > > > > > > > > > > 3. Someone suggested, and I also tried "/var/www/" - same error. > > > > > > > > > > 4. As previously noted - Stuart's answer was tested on a clean, > > > > > unmodified, lighttpd.conf. > > > > > > > > > > 5. As previously noted I also tried removing "nodev" from /etc/fstab > > > > > on line "/var ffs > > > > > rw,nosuid 1 2" > > > > Did you either reboot or remount /var after changing this? > > > Yes. Reboot. > > Try this: > > > > $ cat /var/www/dev/null > > > > It should just return to the prompt (same as "cat /dev/null"). > > > > If it says "Device not configured" then for some reason it still > > seems to be mounted with nodev. (Or check "mount | grep /var").. > > > > If that test works, what's the output from > > > > # rcctl -d start lighttpd > > > > and what, if any, new entries in lighttpd's error log do you have? > > > >