Opened 9 years ago

Last modified 3 years ago

#49638 new defect

lighttpd fails to install without root privileges

Reported by: blaffablaffa@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: kenny@…, posita (Matt Bogosian)
Port: lighttpd

Description

This happens even with "startupitem_install no". Incidentally this prevents installing git too.

Attachments (1)

main.log (269.7 KB) - added by blaffablaffa@… 9 years ago.
lighttpd main.log

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Keywords: lighttpd removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: lighttpd added

In the future, please fill in the Port field and Cc the port maintainers (port info --maintainers lighttpd), if any.

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Could you please attach the main.log file showing what happens with lighttpd?

Please file a separate ticket about git.

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Wait, I see what you mean, lighttpd was recently added as a dependency of git in r141882. Nevermind.

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 9 years ago by blaffablaffa@…

Attachment: main.log added

lighttpd main.log

comment:4 Changed 9 years ago by kenny@…

Cc: kenny@… added

Cc Me!

comment:5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mtb19@… added

Has duplicate #49832.

comment:6 Changed 9 years ago by posita (Matt Bogosian)

From #49832:

I don't see why anyone would want to install a web server non-root.

I think this is shortsighted. Software use and development is a diverse human enterprise. Creative people often find beneficial uses for things that weren't originally contemplated by their designers.

If you have a use case for this please let me know.

Installing applications as non-root, including web servers, can be useful for development, testing, in shared environments, and a whole host of situations not easily covered here.

The following is after a 10 second web search:

FWIW, I have been able to install Apache into a user prefix MacPorts environment. (Admittedly, I have not tried this recently.) Perhaps you can explain why lighttpd requires root, when Apache and WebSphere do not?

Last edited 9 years ago by posita (Matt Bogosian) (previous) (diff)

comment:7 Changed 9 years ago by posita (Matt Bogosian)

At the very least, git should not require root to install. By virtue of its newfound dependency on lighttpd, it now does. (See #49833 for that issue.)

comment:8 Changed 3 years ago by jmroot (Joshua Root)

Has anyone tried just removing the install.asroot yes line? That was added in r58524 with the rather confusing message "fix non-root installations" (it actually has the effect of disallowing installation without root privileges). I don't know of any reason why lighttpd would need this for only the install phase, which is handled entirely by MacPorts base and consists of either creating an archive from the destroot or moving a downloaded archive into place, and then updating the registry.

Note: See TracTickets for help on using tickets.