Re: General questions about install order and variants (Apache2, PHP5, PostgreSQL, mySQL)
php5 is where you're going to have the most choices, variant-wise. You definitely want +apache2 +postgresql +mysql5 but there are plenty of other variants. Mainly, the others map to configure options, so either you could guess from the names of variants (mostly descriptive enough) or you could try reading the portfile (it's at `port file php5`). You *don't* want +macosx, which will build php for the Apple's server, rather than MacPorts'.
That's handy to know, as I have php5 @5.2.2_0+apache2+darwin_8+macosx+mysql5 (active) on my Powerbook G4Ti ... I'd never have guessed that +macosx wasn't intended for the standard MacOSX 10.4.9 which I have installed. Seems to work fine though ... Mark
On 18 May, 2007, at 15:18, Mark Hattam wrote:
That's handy to know, as I have php5 @5.2.2_0+apache2+darwin_8+macosx+mysql5 (active)
on my Powerbook G4Ti ... I'd never have guessed that +macosx wasn't intended for the standard MacOSX 10.4.9 which I have installed. Seems to work fine though ...
This appears to be weird interaction between +apache2 and +macosx (because Apple of course ships a 1.3 version). The +macosx variant should probably depends apache so it will conflict with +apache2.
On May 18, 2007, at 14:37, Chris Pickel wrote:
On 18 May, 2007, at 15:18, Mark Hattam wrote:
That's handy to know, as I have php5 @5.2.2_0+apache2+darwin_8+macosx+mysql5 (active)
on my Powerbook G4Ti ... I'd never have guessed that +macosx wasn't intended for the standard MacOSX 10.4.9 which I have installed. Seems to work fine though ...
This appears to be weird interaction between +apache2 and +macosx (because Apple of course ships a 1.3 version). The +macosx variant should probably depends apache so it will conflict with +apache2.
As one of the php5 maintainers, let me clear this up. On any port, +macosx, if available, is auto-selected if you're running Mac OS X, which is everybody. It does not automatically use Apple's Apache 1.3 installation. Rather: the +apache variant currently does that. Also, currently, if you do not specify either +apache or +apache2, the php5 port will act as though you selected +apache. I find this confusing and intend to fix it soon so that +apache uses the MacPorts apache port. There will then be a new variant +apache_apple which will use Apple's Apache. And the default, if you select neither +apache nor +apache2, will be to not include any Apache support. This seems clearest.
On 18 May, 2007, at 15:53, Ryan Schmidt wrote:
On any port, +macosx, if available, is auto-selected if you're running Mac OS X, which is everybody.
Ah. Isn't it normally 'platform macosx'? When I look at a Portfile, I assume variants are mine to select and platforms are handled by MacPorts.
I find this confusing and intend to fix it soon so that +apache uses the MacPorts apache port. There will then be a new variant +apache_apple which will use Apple's Apache. And the default, if you select neither +apache nor +apache2, will be to not include any Apache support. This seems clearest.
Agreed. Of course, it's not really an issue to me, since I only need +fastcgi :) Chris
At 14:53 -0500 18/5/07, Ryan Schmidt wrote:
On May 18, 2007, at 14:37, Chris Pickel wrote:
On 18 May, 2007, at 15:18, Mark Hattam wrote:
That's handy to know, as I have php5 @5.2.2_0+apache2+darwin_8+macosx+mysql5 (active)
on my Powerbook G4Ti ... I'd never have guessed that +macosx wasn't intended for the standard MacOSX 10.4.9 which I have installed. Seems to work fine though ...
This appears to be weird interaction between +apache2 and +macosx (because Apple of course ships a 1.3 version). The +macosx variant should probably depends apache so it will conflict with +apache2.
As one of the php5 maintainers, let me clear this up.
On any port, +macosx, if available, is auto-selected if you're running Mac OS X, which is everybody. It does not automatically use Apple's Apache 1.3 installation. Rather: the +apache variant currently does that. Also, currently, if you do not specify either +apache or +apache2, the php5 port will act as though you selected +apache.
I find this confusing and intend to fix it soon so that +apache uses the MacPorts apache port. There will then be a new variant +apache_apple which will use Apple's Apache. And the default, if you select neither +apache nor +apache2, will be to not include any Apache support. This seems clearest.
Well, I use Apache2 ... and these are what I used ... apache2 @2.2.4_0 (active) mysql5 @5.0.41_0+darwin_8+server (active) php5 @5.2.2_0+apache2+darwin_8+macosx+mysql5 (active) and it seems to work OK. But for next time, I don't need to specify the +macosx variant on php5 ... correct? Though in practice it doesn't matter whether I do or don't? Also looking back at Chris's original reply which included ... "You definitely want +apache2 +postgresql +mysql5 but there are plenty of other variants" why would I "definitely want" +postgresql ? Mark
On May 18, 2007, at 15:56, Mark Hattam wrote:
At 14:53 -0500 18/5/07, Ryan Schmidt wrote:
As one of the php5 maintainers, let me clear this up.
On any port, +macosx, if available, is auto-selected if you're running Mac OS X, which is everybody. It does not automatically use Apple's Apache 1.3 installation. Rather: the +apache variant currently does that. Also, currently, if you do not specify either +apache or +apache2, the php5 port will act as though you selected +apache.
I find this confusing and intend to fix it soon so that +apache uses the MacPorts apache port. There will then be a new variant +apache_apple which will use Apple's Apache. And the default, if you select neither +apache nor +apache2, will be to not include any Apache support. This seems clearest.
Well, I use Apache2 ... and these are what I used ...
apache2 @2.2.4_0 (active) mysql5 @5.0.41_0+darwin_8+server (active) php5 @5.2.2_0+apache2+darwin_8+macosx+mysql5 (active)
and it seems to work OK.
But for next time, I don't need to specify the +macosx variant on php5 ... correct? Though in practice it doesn't matter whether I do or don't?
You never need to specify +macosx or +darwin or +darwin_8 or +i386 with any port ever. MacPorts will automatically select these OS- and platform-specific variants for you as needed by the version of the OS installed and the architecture of the processor in your Mac.
Also looking back at Chris's original reply which included ... "You definitely want +apache2 +postgresql +mysql5 but there are plenty of other variants"
why would I "definitely want" +postgresql ?
You may not, but Bill probably does, because he specifically mentioned PHP 5 and PostgreSQL: On May 18, 2007, at 12:57, Bill Hernandez wrote:
Before I install (Apache2, PHP5, PostgreSQL, mySQL) I wanted to find out if there was a preferred way of doing this ?
Chris Pickel <chpickel@stwing.upenn.edu> on Friday, May 18, 2007 at 1:06 PM -0800 wrote:
On any port, +macosx, if available, is auto-selected if you're running Mac OS X, which is everybody.
Ah. Isn't it normally 'platform macosx'? When I look at a Portfile, I assume variants are mine to select and platforms are handled by MacPorts.
That's my question too. Why isn't it a platform statement? Mark
I didn't write everyone individually to thank them for the time they took to provide some spectacular insights, but I am most grateful for the time you all took... I've been programming 12-15 hours a day now for months, and I think I really need a vacation, get away from all this. Actually I am retired, and no-one forces me to do this, I've always loved solving problems and the mental challenge programming has always provide me. I think it's just the frustration when things don't go well that go the better of me... I would like to apologize to the members of the list for having sent this message expressing my paradigm's views, which in retrospect it appears were mostly flawed. Once again, thank you for the great insights, and especially to the all the folks involved with MacPorts. Best Regards, Bill Hernandez Plano, Texas
On May 18, 2007, at 17:35, Mark Duling wrote:
Chris Pickel on Friday, May 18, 2007 at 1:06 PM -0800 wrote:
On 18 May, 2007, at 15:53, Ryan Schmidt wrote:
On any port, +macosx, if available, is auto-selected if you're running Mac OS X, which is everybody.
Ah. Isn't it normally 'platform macosx'? When I look at a Portfile, I assume variants are mine to select and platforms are handled by MacPorts.
That's my question too. Why isn't it a platform statement?
It looks like this wording originated from the patch in this ticket: http://trac.macosforge.org/projects/macports/ticket/1242 It was applied to php4 in this revision 3 years ago: http://trac.macosforge.org/projects/macports/changeset/4126 And it got carried over to php5 when that port was created. Before I change "variant" to "platform" I would like to test a bit to make sure that everything still works as expected. Please hold.
participants (5)
-
Bill Hernandez
-
Chris Pickel
-
Mark Hattam
-
markd@macports.org
-
Ryan Schmidt