Opened 17 years ago
Closed 15 years ago
#13450 closed defect (fixed)
lighttpd log directory isn't created automatically
Reported by: | henrik@… | Owned by: | nerdling (Jeremy Lavergne) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | pguyot (Paul Guyot) | |
Port: | lighttpd |
Description
The directory "/var/log/lighttpd" isn't created automatically when lighttpd is installed. lighttpd won't launch unless it exists.
Attachments (2)
Change History (10)
comment:1 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)
Milestone: | → Port Bugs |
---|
comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-dev@… to pguyot@… |
---|
comment:3 Changed 17 years ago by henrik@…
Ok, that makes sense.
Then lighttpd.conf needs to be changed so that the "access.log" and "error.log" variables use the prefixed paths.
comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | lighttpd added |
---|
There are a bunch of things that should be changed in lighttpd.conf.default before it's installed:
- server.document-root should be set to a directory inside ${prefix}, like ${prefix}/www
- server.errorlog should be set to ${prefix}/var/log/lighttpd/error.log
- server.event-handler should be set to freebsd-kqueue on platform darwin
- accesslog.filename should be set to ${prefix}/var/log/lighttpd/access.log
- server.username and server.groupname should be set to www
All of the above-mentioned dirs should be created by the port and listed in destroot.keepdirs so they're not deleted by MacPorts during the destroot phase.
comment:6 Changed 15 years ago by nerdling (Jeremy Lavergne)
Cc: | pguyot@… added |
---|---|
Owner: | changed from pguyot@… to snc@… |
Status: | new → assigned |
Version: | 1.5.2 |
comment:7 Changed 15 years ago by nerdling (Jeremy Lavergne)
Are these attached diffs suitable for all the necessary changes?
Changed 15 years ago by nerdling (Jeremy Lavergne)
Attachment: | Portfile-lighttpd.diff added |
---|
portfile changes
Changed 15 years ago by nerdling (Jeremy Lavergne)
Attachment: | Portfile-lighttpd-files.diff added |
---|
patchfile changes
comment:8 Changed 15 years ago by nerdling (Jeremy Lavergne)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Committed in r55776.
Note: See
TracTickets for help on using
tickets.
Did you mean
/var/log/lighttpd
or${prefix}/var/log/lighttpd
? In most cases, MacPorts should not be creating or using directories outside of${prefix}
.