Just got myself a Macbook, and needing to setup a PHP development enviroment on it. I understand getting it done is pretty different to how it’s done on a Windows machine.
Anyone got a short tutorial, or know of one, that could help me get this done? I’m looking at having Apache/MySQL/PHP installed.
Well you can always use MAMP - which is super easy (similar to the WAMP setup)... or you can go through and manually turn on web sharing (apache2) with PHP and MySQL. Personally I prefer the MAMP setup because A) it uses localhost as the TLD which lends well to url segments in CI for devel and production environments and B) it’s easier to maintain…
BTW congrats on getting the Macbook, I just picked up a new iMac this past week as well and was up and running in no time. As far as editors I highly recommend Coda (by Panic), or there are options to go with BBedit, TextWrangler or PHPEclipse (which I’ll probably be porting over my sites from windows to see how well it works.
I’m still trying to figure out how to get subversion to play nicely on the mac.
I use MAMP too, and congratulations on buying a Macbook. I too went from windows to a Macbook about 4 months ago and it was absolutely the best computer purchase I’ve ever made.
Not to thread jack - but once they come out with the new MBP in Feb (surely they do more than the recent 2mghz speed bump…)I’ll be adding one to my arsenal. So what specs are you both running?
Just had a look at Coda. It certainly does look it covers most thing, and I especially like it’s non-cluttered UI. Is it work shelling out the cash for then? And how does it handle XML? I’ve got a couple of XML projects coming up, can you validate XML in it or would you suggest using another app for XML?
Code Arachnid, take a look at SCPlugin, and MacPorts. SCPlugin is amazing, it integrates into the Finder right click menu. Macports is a package manager like Synaptic. Also take a look at vim, it’s worth the work
I agree whole heartedly with that post. I use MAMP and I bought Coda. It is THE best development duo along with my Macbook Pro. MAMP is just simple and I have had no issues with it, one click and it starts my server with no problems.
Coda looks nice - but for all my coding, including PHP, I live and breathe TextMate. If you never do anything but web-development, I’m sure Coda is worth the money, but if you ever need to stray into Python, XML, LaTeX, Java - whatever TextMate is the way to go. And PHP/HTML/JS/CSS is works just as well. When it comes to coda though, I get the feeling it’s sort of centered around a “old-school” non-frameworky paradigm. Seems it would be messy to develop for CI in it. I’d sure like to hear some details about this from people developing for CI in Coda.
I’ve never tried MAMP or XAMPP. I always just used the built in Apache/PHP. Now that I’ve got Leopard It’s Apache 2 and PHP 5 which is nice. MySQL I download directly from the MySQL downloads site. The binary they have for 10.4 works on 10.5 also, but there are a few quirks: you’ve got to do some terminal-fiddling to start up the mysql-server. (Since I never shut down my machine, that’s not much of a problem for me - did it once, won’t have to do it again in a while)
I’ve used both XAMPP back in my PC days, however when I got back into mac I was using MAMP with Coda, CocoaMySQL, and PHPMyAdmin. However for the past 4-ish months I’ve moved away from MAMP and use a local freeBSD server now. Along with my other applications I mentioned. However I do use MAMP when I’m on the go with my laptop and need to work on clients and such, and for this MAMP once again is outstanding .
MAMP Pro is very useful for us. We have a static IP directed to our local development server, and have MAMP Pro serving many of our clients sites during development. So clients can see the progress of our development, and we have full control of the dev server in our offices. When it’s time to launch, we rarely run into many hangups when moving from OS X to Linux.
Instead of using only the one localhost, we can specify separate domains, so that we can develop multiple sites at one time. Very nice and perfect for our needs.