Page 1 of 1

PHP dev on OSX

Posted: Thu Oct 13, 2005 11:22 am
by onion2k
I'm considering buying a shiny new laptop as a backup to my creaky old development PC, and I was thinking of buying a Mac Powerbook. But before I do..

1. Any installation issues for Apache/PHP/Mysql on OSX that I should know about?
2. Any differences between PHP on OSX and Windows/Linux?
3. Any module differences? Particularly with regard to GD2.

And, as a completely leftfield shot in the dark question.. would it be possible to run PHP4, PHP5, MySQL 4.1, and MySQL 5.0 all at once on OSX? If they were run under different user accounts that would be fine. I'd like to move my skillset to the latest versions of things but I'd need to be able to maintain existing code as well

Any help would be ace. Cheers.

Posted: Thu Oct 13, 2005 11:29 am
by redmonkey
1. Depends, there are binary installer packages which should take the headaches out of it. If you're compiling them yourself, then yes, it's not as straight forward as it is on other platforms.

2. Not as far as I'm aware.

3. GD support is relatively straight forward.

Yes, two different users can run two different setups/configurations.

Re: PHP dev on OSX

Posted: Thu Oct 13, 2005 2:17 pm
by marianopeterson
onion2k wrote:2. Any differences between PHP on OSX and Windows/Linux?
OSX doesn't seem to suppot Locale (LC_COLLATE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, and LC_TIME) which can be frustrating when using Smarty temlates and otherwise trying to format your ouput according to locale. The locale files are in place (/usr/share/locale), but OSX's locale functions (and therefore PHP's locale functions) just don't work.

The first time I installed PHP on OSX I used http://www.entropy.ch/software/macosx/php/ , which worked very well.

Generally I've had a good experience running PHP on OSX.

Posted: Thu Oct 13, 2005 5:17 pm
by pickle
I imagine the PHP installation is of a UNIX base. There are some differences between Windows and Unix versions of PHP, but those differences depend on the function you call. It's nothing as big as argument ordering or anything, just default I think.

Posted: Thu Oct 13, 2005 10:10 pm
by imstupid
on a side note,
in case you care, you might want to hold out on buying that powerbook a tad. there's been a lot of rumors flying around the apple world, especially with powerbooks vs. heat vs intel chips vs. ibm, etc. etc., so I thought I'd just throw that out there. Although some of the information is based on theories and elapsed time, I'd check out macrumors.com for anything unusual that might be going on out there. I've been waiting to buy a new powerbook for the past year, however cash flow is a major factor in my situation. I just wish they were a little cheaper. Like that girl I dated in college.