On 2024-08-15, David Colburn <q...@kd4e.com> wrote:
> This is a multi-part message in MIME format.
> --------------SIjdwSa43FawypA6wB8kzt18
> Content-Type: text/plain; charset=UTF-8; format=flowed
> Content-Transfer-Encoding: 7bit
>
> Dell OptiPlex 7050
>
> OpenBSD 7.5
>
> php 8.3.10
>
> lighttpd-1.4.74-mysql
>
> I'm using root.
>
> "*rcctl -df start lighttpd*" errors
>
> "/daemonized server failed to start; check error log for details doing 
> _rc_rm_runfile (failed)/"
>
> error.log says:
>
> "... 
> (/usr/obj/ports/lighttpd-1.4.74-mysql/lighttpd-1.4.74/src/configfile.c.1981) 
> opening /dev/null failed: No such file or directory"
>
> "... 
> (/usr/obj/ports/lighttpd-1.4.74-mysql/lighttpd-1.4.74/src/configfile.c.1935) 
> Opening errorlog failed: No such file or directory"
>
> According to this:
>
> https://www.reddit.com/r/openbsd/comments/nygjdm/lighttpd_cant_find_devnull_on_69/
>
> there's supposed to be a directory here: /usr/sbin/chroot/ but chroot is 
> actually a file.
>
> I'm not sure how to proceed to fix the dev/null problem ...

Assuming /var/www/dev does not already exist, this should do it:

# mkdir /var/www/dev
# cd /var/www/dev
# sh /dev/MAKEDEV std
# rm !(null)

If it already exists then you may need to adapt the rm command to
preserve existing entries, or use mknod(8) manually to just create
the "null" node.

You'll also need to make sure that /var/www is _not_ mounted with
the "nodev" option (/etc/fstab).

If this is a hard requirement for lighttpd then the port could
probably do with explaining it somewhere .. (maintainer cc'd)

Reply via email to