Skip to content

Commit

Permalink
lighttpd: run it as root
Browse files Browse the repository at this point in the history
Upstream solution in OpenWrt uses http as user and www-data as group,
unfortunately, this breaks new Turris OS installations.

When I used the upstream solution inside init script to create http
user and the group as well, then it does not work for us and we need to
release Turris OS 6.0 fast.

Fixes:
1. 2022-10-14 16:35:22: (../src/server.c.1410) can't find username http
2. 2022-10-14 16:32:48: (../src/configfile.c.1720) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
2022-10-14 16:32:48: (../src/server.c.1584) Opening errorlog failed. Going down.

Fixes: 23f5699 ("lighttpd &
turris-webapps: prepare to support upstream OpenWrt lighttpd pkg")
  • Loading branch information
BKPepe authored and Filip Hron committed Jul 31, 2023
1 parent bf2e2af commit c8d1d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/lighttpd/files/lighttpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ server.document-root = server_root
server.upload-dirs = ( "/tmp" )
server.errorlog = log_root + "error.log"
server.pid-file = state_dir + "lighttpd.pid"
server.username = "http"
server.groupname = "www-data"
#server.username = "http"
#server.groupname = "www-data"

# historical; preserved for compatibility; should have been disabled by default
index-file.names = ( "index.php", "index.html",
Expand Down

0 comments on commit c8d1d51

Please sign in to comment.