New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #24994 (closed defect: invalid)

Opened 3 years ago

Last modified 19 months ago

php52: apache2 +preforkmpm depdency test fails when apache modules compiled statically

Reported by: info@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: jwa@…
Port: php52

Description

If apache2 is compiled with static modules, mod_cgi.so doesn't appear in the modules directory, and the apache2 variant dependency test fails.

Perhaps a more reliable test would be to check the output of ${prefix}/apache2/bin/apachectl -M.

If I knew off the top of my head how to script the test, I'd submit a patch.

For those encountering this problem:

Putting any file named mod_cgi.so in <macports-directory>/apache2/modules allows this port to install.

Whether it works is yet to be seen...

Change History

comment:1 Changed 3 years ago by jmr@…

  • Cc jwa@… added
  • Owner changed from macports-tickets@… to ryandesign@…

Please remember to cc the maintainers.

comment:2 in reply to: ↑ description ; follow-up: ↓ 3 Changed 3 years ago by ryandesign@…

Replying to info@…:

If apache2 is compiled with static modules,

How does one compile MacPorts apache2 with static modules?

comment:3 in reply to: ↑ 2 ; follow-up: ↓ 4 Changed 3 years ago by info@…

How does one compile MacPorts apache2 with static modules?

In a nutshell, by changing the configure arguments... making a private local port, a patch, or by editing the port file (I know the latter is probably not advisable).

I know one could ask why not just branch or change the php52 port as well... Could, for sure.

Just putting this out there as a way to handle a wider variety of apache2 configurations with this port, and to document a workaround for anyone who encounters the problem.

Update on the workaround: As far as I can tell, it's working fine. I'm running a PHP / MySQL app with no problems encountered.

comment:4 in reply to: ↑ 3 Changed 19 months ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to invalid
  • Summary changed from apache2 +preforkmpm depdency test fails when apache modules compiled statically to php52: apache2 +preforkmpm depdency test fails when apache modules compiled statically

Replying to info@…:

How does one compile MacPorts apache2 with static modules?

In a nutshell, by changing the configure arguments... making a private local port, a patch, or by editing the port file (I know the latter is probably not advisable).

Not supported. If you're already locally editing your apache port to do this, then you can locally edit your php52 port too.

Note: See TracTickets for help on using tickets.