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)

Portfile-lighttpd.diff (1.4 KB) - added by nerdling (Jeremy Lavergne) 15 years ago.
portfile changes
Portfile-lighttpd-files.diff (5.4 KB) - added by nerdling (Jeremy Lavergne) 15 years ago.
patchfile changes

Download all attachments as: .zip

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@…

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}.

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:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:6 Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc: pguyot@… added
Owner: changed from pguyot@… to snc@…
Status: newassigned
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)

patchfile changes

comment:8 Changed 15 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed

Committed in r55776.

Note: See TracTickets for help on using tickets.