DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th June 2021
paultgg paultgg is offline
New User
 
Join Date: Jun 2021
Posts: 2
Lightbulb [SOLVED] lighttpd can't find /dev/null?

UPDATE: solution is in the thread below!

I'm trying to use lighttpd on OpenBSD 6.9, but when I try to run it with the default settings, I get the following:

Code:
2021-06-11 19:12:31: configfile.c.1380) opening /dev/null failed: No such file or directory
2021-06-11 19:12:31: server.c.1509) Opening errorlog failed. Going down.

Anyone had this happen before, and any tips on where to start looking? (I can confirm that /dev/null exists , and is world-readable...)

Last edited by paultgg; 13th June 2021 at 02:51 AM. Reason: Found a solution
Reply With Quote
  #2   (View Single Post)  
Old 13th June 2021
paultgg paultgg is offline
New User
 
Join Date: Jun 2021
Posts: 2
Lightbulb

The solution is here (courtesy of gumnos on Reddit):,

...but the short version is that, since lighttpd is chrooted, you have to create a /dev/null device within the chroot location (default is /var/www/).
Reply With Quote
Reply

Tags
lighttpd


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/null was a regular file? beavers OpenBSD General 2 24th July 2019 10:02 AM
Security Web server backdoor also booby traps lighttpd and NGINX J65nko News 0 8th May 2013 09:50 PM
OpenBSD OpenBSD Reliability Fix: kernel NULL pointer dereference in getsockopt() J65nko News 0 28th October 2009 11:56 PM
lighttpd + PHP on OpenBSD 4.5 amscotti OpenBSD Packages and Ports 6 24th June 2009 11:43 AM
Problems getting lighttpd working with php and fcgi pormogo FreeBSD Ports and Packages 3 6th June 2008 10:02 PM


All times are GMT. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick