Re: lighttpd in openbsd - cant find devnull

2024-08-24 Thread David Colburn
Awesome! That worked. Thanks! I guess I can now move on to install MariaDB ... And after that the Chamilo-LMS. On 8/24/24 09:24, Страхиња Радић wrote: Дана 24/08/23 10:04PM, David Colburn написа: Owner and Group are "www www" - is that correct? No. On a clean install (using defaults for th

Re: lighttpd in openbsd - cant find devnull

2024-08-24 Thread Страхиња Радић
Дана 24/08/23 10:04PM, David Colburn написа: > Owner and Group are "www www" - is that correct? No. On a clean install (using defaults for the OpenBSD port), /var/www/logs/error.log and /var/www/logs/access.log are owned by the user _lighttpd and group _lighttpd. That differs from the instructio

Re: lighttpd in openbsd - cant find devnull

2024-08-24 Thread David Colburn
On 8/24/24 04:31, Stuart Henderson wrote: On 2024/08/23 22:04, David Colburn wrote: On 8/21/24 14:25, Stuart Henderson wrote: 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_

Re: lighttpd in openbsd - cant find devnull

2024-08-24 Thread Stuart Henderson
On 2024/08/23 22:04, David Colburn wrote: > On 8/21/24 14:25, Stuart Henderson wrote: > > 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 >

Re: lighttpd in openbsd - cant find devnull

2024-08-23 Thread David Colburn
On 8/21/24 14:25, Stuart Henderson wrote: 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_st

Re: lighttpd in openbsd - cant find devnull

2024-08-23 Thread David Colburn
Does this mean that the /dev/null problem I've been chasing can't be solved without the maintainer's intervention? On 8/23/24 01:06, Страхиња Радић wrote: I use httpd(8), since a static website server is enough for my use cases, so I tried creating a fresh installation of OpenBSD 7.5 in a VM t

Re: lighttpd in openbsd - cant find devnull

2024-08-22 Thread Страхиња Радић
I use httpd(8), since a static website server is enough for my use cases, so I tried creating a fresh installation of OpenBSD 7.5 in a VM to test this. It seems that lighttpd doesn't work out of the box on OpenBSD 7.5, and this is something for the maintainer of lighttpd port to take a look at, pr

Re: lighttpd in openbsd - cant find devnull

2024-08-22 Thread David Colburn
|Might this then solve the failure to write error.log problem?| || |"chown _lighttpd:_lighttpd /var/www/logs/error.log"| || | | On 8/22/24 18:01, Stuart Henderson wrote: Lighttpd is running as the _lighttpd user, not as root. --   Sent from a phone, apologies for poor formatting. On 21 August

Re: lighttpd in openbsd - cant find devnull

2024-08-22 Thread Stuart Henderson
Lighttpd is running as the _lighttpd user, not as root. -- Sent from a phone, apologies for poor formatting. On 21 August 2024 21:19:20 David Colburn wrote: What do I do about the error.log problem? I'm running as root - so a permissions problem would seem impossible. Unless lighttpd is ch

Re: lighttpd in openbsd - cant find devnull

2024-08-21 Thread David Colburn
"$ 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/ligh

Re: lighttpd in openbsd - cant find devnull

2024-08-21 Thread Stuart Henderson
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_

Re: lighttpd in openbsd - cant find devnull

2024-08-21 Thread Stuart Henderson
(oops, sent to David but I forgot to CC the list back) 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 locat

Re: lighttpd in openbsd - cant find devnull

2024-08-21 Thread David Colburn
On 8/21/24 10:34, Stuart Henderson 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 al

Re: lighttpd in openbsd - cant find devnull

2024-08-21 Thread David Colburn
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 teste

Re: lighttpd in openbsd - cant find devnull

2024-08-21 Thread Stuart Henderson
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 e

Re: lighttpd in openbsd - cant find devnull

2024-08-21 Thread Robert Klein
Hi, your “chroot location” is defined in /etc/lighttpd.conf. If you didn't change it, it is /var/www. Please read the man page for chroot(8). The command to do this is “man 8 chroot” (without the quotes). Alternatively the Wikipedia entry for chroot can help you understand what chroot is an

Re: lighttpd in openbsd - cant find devnull

2024-08-20 Thread David Colburn
So, I'm at a dead end atm. It was a clean install - OpenBSD 7.5, php 8.3.10, lighttpd-1.4.74-mysql What should have worked (Stuart's instructions) didn't. 'chroot' locations are as listed (see following). Where do I go from here, please? Is it possible that the lighttpd.conf from lighttpd-1.4

Re: lighttpd in openbsd - cant find devnull

2024-08-18 Thread Stuart Henderson
Hmm. That should be ok... -- Sent from a phone, apologies for poor formatting. On 18 August 2024 21:19:25 David Colburn wrote: total 0 crw-rw-rw- 1 root wheel 2, 2 Aug 18 10:07 null On 8/18/24 16:00, Stuart Henderson wrote: Did you do the mkdir etc? What does ls -l /var/www/dev show? --

Re: lighttpd in openbsd - cant find devnull

2024-08-18 Thread David Colburn
total 0 crw-rw-rw- 1 root  wheel  2, 2 Aug 18 10:07 null On 8/18/24 16:00, Stuart Henderson wrote: Did you do the mkdir etc? What does ls -l /var/www/dev show? --   Sent from a phone, apologies for poor formatting. On 18 August 2024 17:01:52 David Colburn wrote: I removed "nodev" from th

Re: lighttpd in openbsd - cant find devnull

2024-08-18 Thread Stuart Henderson
Did you do the mkdir etc? What does ls -l /var/www/dev show? -- Sent from a phone, apologies for poor formatting. On 18 August 2024 17:01:52 David Colburn wrote: I removed "nodev" from the /var line and rebooted. Same error: 2024-08-13 22:29:37: (/usr/obj/ports/lighttpd-1.4.74-mysql/lightt

Re: lighttpd in openbsd - cant find devnull

2024-08-18 Thread David Colburn
I removed "nodev" from the /var line and rebooted. Same error: 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/

Re: lighttpd in openbsd - cant find devnull

2024-08-18 Thread David Colburn
/etc/fstab currently looks like this: none swap sw / ffs rw 1 1 /home ffs rw,nodev,nosuid 1 2 /tmp ffs rw,nodev,nosuid 1 2 /usr ffs rw,nodev 1 2 /usr/X11R6 ffs rw,nodev 1 2 /usr/local ffs rw,wxallowed,nodev 1 2 /usr/obj ffs rw,nodev,nosuid 1 2 /usr/src ffs rw,nodev,nosuid 1 2 /var ffs rw,nodev,no

Re: lighttpd in openbsd - cant find devnull

2024-08-18 Thread Stuart Henderson
Yes -- Sent from a phone, apologies for poor formatting. On 18 August 2024 15:29:07 David Colburn wrote: That's very helpful, thanks! /var is mounted "ffs rw,nodev,nosuid, 1 2" /var/www isn't specifically mentioned. Would it be affected by the /var mount settings? Thanks again. On 8/18/

Re: lighttpd in openbsd - cant find devnull

2024-08-18 Thread David Colburn
That's very helpful, thanks! /var is mounted "ffs rw,nodev,nosuid, 1 2" /var/www isn't specifically mentioned. Would it be affected by the /var mount settings? Thanks again. On 8/18/24 07:50, Stuart Henderson wrote: On 2024-08-15, David Colburn wrote: This is a multi-part message in MIME f

Re: lighttpd in openbsd - cant find devnull

2024-08-18 Thread Stuart Henderson
On 2024-08-15, David Colburn 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 > >

lighttpd in openbsd - cant find devnull

2024-08-17 Thread David Colburn
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