Opened 16 years ago

Closed 9 years ago

#14001 closed enhancement (wontfix)

php5 5.2.5 should support Apple Apache 2 on Leopard

Reported by: compconsultant@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: mikel.king@…, coolfactor@…, nox@…
Port: php5

Description (last modified by jmroot (Joshua Root))

When using port install php5 +mssql +mysql5, it fails as the port tried to use the default Apache 1 on Mac OSX, but, Leopard comes with Apache2. This the with-apxs which should point to an Apache 1 binary in /usr/sbin instead points to Apache2 since that is what it is on Leopard, at least mine which is 10.5.1. The workaround of course is to not use the built in Apache2, and, use +APACHE2.

Still, it would be nice to be able to use the built in. But this may not be possible, simply changing that line to with-apxs2 yields other errors.

This is found here:

 if no apache/apache2/fastcgi variant is set, we set it (need better default variant management)
if { ![variant_isset apache] && ![variant_isset apache2] && ![variant_isset fastcgi] } {
if { ! [variant_isset macosx] } {
depends_lib-append path:${prefix}/sbin/apxs:apache
configure.args-append --with-apxs=${prefix}/sbin/apxs
} else {
'''configure.args-append --with-apxs=/usr/sbin/apxs'''
}
}

Change History (9)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Milestone: Port BugsPort Enhancements
Owner: changed from macports-tickets@… to ryandesign@…
Summary: php5 5.2.5 fails to build on Leopardphp5 5.2.5 should support Apple Apache 2 on Leopard
Type: defectenhancement

php5 supports Apple Apache 1 (on Tiger and earlier) with +apache and MacPorts Apache 2 with +apache2. This will be changed so that +apache is for MacPorts Apache 1, +apache2 is still for MacPorts Apache 2, and +apache_apple uses Apple Apache 1 on Tiger and earlier and Apple Apache 2 on Leopard and later. I've been meaning to do this for some time. Thanks for the reminder. Though it may take some time to do, as I don't have Leopard.

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

Cc: mikel.king@… added

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

Cc: coolfactor@… added
Status: newassigned

Has duplicate #15220.

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

This issue affects all three php ports (php4, php5, php5-devel).

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

Keywords: ticketformatting added; php5 removed
Port: php5 added

comment:6 Changed 16 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: ticketformatting removed

comment:7 Changed 15 years ago by nox@…

Cc: nox@… added

Cc Me!

comment:8 Changed 15 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

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

Resolution: wontfix
Status: assignedclosed

The php5 port was superseded years ago by the php5X series of ports, and there is no longer an option to use an Apple version of Apache. This matches our policy (see wiki:FAQ#ownlibs) and is no longer a big problem because Apple doesn't even provide an obvious way to use their copy of Apache on Yosemite anymore, hinting that Apple may remove Apache from OS X entirely in the future.

Note: See TracTickets for help on using tickets.