Need clarification on install procedure
ryandesign at macports.org
Wed Jun 30 00:29:30 PDT 2010
On Jun 30, 2010, at 01:26, Bill Christensen wrote:
> At 6:30 AM -0500 6/29/10, Ryan Schmidt wrote:
>> On Jun 29, 2010, at 02:10, Bill Christensen wrote:
>>> I've also scanned through the archives from the past year and it appears that the dbs are now installed separately from Apache.
>> Not sure what you're referring to... The apache2 port has never been related to database ports like mysql5 and postgresql84; they have nothing to do with one another and have always been installed separately.
> Sorry, I was referring to the command
> install port php5 +apache2 +mysql5
"sudo port install php5 +apache2 +mysql5" installs the php5 port with the +apache2 and +mysql5 variants. This means php5 will be built with support for apache2 and mysql5. And it means that the apache2 and mysql5 ports will be installed in order to make that happen. It does not mean that the apache2 and mysql5 ports are in any way related to one another; they aren't; apache2 doesn't use mysql5 and mysql5 doesn't use apache2; rather, php5 uses both of them (when the corresponding variants of php5 are selected).
> Scott Haneda clarified to me earlier today that you can now do
> install port php5
> install port php5-mysql
> install port php5-postgresql
> etc. (or maybe you always could, but I wasn't aware of it).
There used to be variants of the php5 port for a lot of optional PHP features (like MySQL 5 support via the +mysql5 variant). php5 also used to have a lot of other optional features always enabled (e.g. GD2 support). Between July and October 2009 I moved most of these features out of the php5 port itself and into separate ports (e.g. php5-mysql and php5-gd). For a more complete list of changes you can read the ticket:
>> I don't know what you had to change in the php config file to make MySQL work before. When installing php5-mysql today, you should receive a message advising you what you need to change in php.ini to make it work.
> The changes to php config were to get the correct settings for my needs - some of which weren't there by default. Install, go to the portfile, change the config settings as needed, uninstall, then reinstall.
>> I can't imagine a reason why you would have had to uninstall php5 then reinstall it. If you believe you are in need of that again, please let us know what you're experiencing so we can know what's wrong.
So you edited the php5 Portfile to change the configure.args, I guess? What kinds of changes did you need to make?
More information about the macports-users