New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13450 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

lighttpd log directory isn't created automatically

Reported by: henrik@… Owned by: snc@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: pguyot@…
Port: lighttpd

Description

The directory "/var/log/lighttpd" isn't created automatically when lighttpd is installed. lighttpd won't launch unless it exists.

Attachments

Portfile-lighttpd.diff Download (1.4 KB) - added by snc@… 2 years ago.
portfile changes
Portfile-lighttpd-files.diff Download (5.4 KB) - added by snc@… 2 years ago.
patchfile changes

Change History

Changed 4 years ago by jmpp@…

  • milestone set to Port Bugs

Changed 4 years ago by ryandesign@…

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

Changed 4 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.

Changed 3 years ago by ryandesign@…

  • port set to lighttpd

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.

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Changed 2 years ago by snc@…

  • cc pguyot@… added
  • status changed from new to assigned
  • version 1.5.2 deleted
  • owner changed from pguyot@… to snc@…

Changed 2 years ago by snc@…

Are these attached diffs suitable for all the necessary changes?

Changed 2 years ago by snc@…

portfile changes

Changed 2 years ago by snc@…

patchfile changes

Changed 2 years ago by snc@…

  • status changed from assigned to closed
  • resolution set to fixed

Committed in r55776.

Note: See TracTickets for help on using tickets.