Part of the EllisLab Network
   
1 of 3
1
PHP Development Enviroment in OS X
Posted: 12 November 2007 08:31 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  63
Joined  10-04-2007

Afternoon all,

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.


Cheers.

Profile
 
 
Posted: 12 November 2007 09:19 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  284
Joined  09-11-2007

http://www.apachefriends.org/en/xampp.html

But the configuration is almost the same.

php.ini, httpd.conf, ...

tongue laugh

 Signature 

cool mad
Rafael
My Blog

“Because they’re stupid, that’s why. That’s why everybody does everything!”

Profile
 
 
Posted: 12 November 2007 09:46 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  162
Joined  02-14-2007

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.

 Signature 

Trying to do it right the first time! whoops guess that didn’t work out so well…

Profile
 
 
Posted: 12 November 2007 10:02 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  364
Joined  11-06-2006

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.

 Signature 

Pro Cycling Shirts

Profile
 
 
Posted: 12 November 2007 10:05 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  162
Joined  02-14-2007

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?

 Signature 

Trying to do it right the first time! whoops guess that didn’t work out so well…

Profile
 
 
Posted: 12 November 2007 10:05 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  708
Joined  03-20-2006

Yep same here.

MAMP, CODA.

Nothing else needed.

Profile
 
 
Posted: 12 November 2007 10:49 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  63
Joined  10-04-2007

Wow. MAMP looks terrific. Cheers guys.

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?

Profile
 
 
Posted: 12 November 2007 11:10 AM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  711
Joined  06-07-2007

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 smile

 Signature 

CodeExtinguisher
Download: codex2_rc14.2.zip - 219 KiloBytes of Gloriousness!
Demo: Public preview - login with preview:preview
Temporary Docs: PBWiki

Profile
 
 
Posted: 13 November 2007 05:40 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  708
Joined  03-20-2006

What is SCPlugin?

Profile
 
 
Posted: 13 November 2007 07:08 AM   [ Ignore ]   [ # 9 ]  
Summer Student
Avatar
Total Posts:  24
Joined  03-15-2007
audiopleb - 12 November 2007 10:05 AM

Yep same here.

MAMP, CODA.

Nothing else needed.

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.

 Signature 

Powered by a Macbook Pro and Mac OS X Leopard!
—-
Nerd is not a four letter word, its a six figure income!
My brand spanking new website built on CodeIgniter—alexeckermann.com

Profile
 
 
Posted: 13 November 2007 08:25 AM   [ Ignore ]   [ # 10 ]  
Grad Student
Rank
Total Posts:  63
Joined  10-04-2007

Just got done installing MAMP and I’m blown away. Simple to setup up, and with one click everything is ready to go.

Just about to install the Coda trail and see how it is, but if it’s as good as I hear, I’ll probably just end up buying a copy.

Profile
 
 
Posted: 13 November 2007 09:02 AM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  711
Joined  06-07-2007

audiopleb: http://www.google.com/search?q=scplugin

 Signature 

CodeExtinguisher
Download: codex2_rc14.2.zip - 219 KiloBytes of Gloriousness!
Demo: Public preview - login with preview:preview
Temporary Docs: PBWiki

Profile
 
 
Posted: 17 November 2007 08:46 AM   [ Ignore ]   [ # 12 ]  
Summer Student
Avatar
Total Posts:  21
Joined  11-17-2007

Coda, I develop on a spare shared hosting account I use.

I use xampp when necessary however.

 Signature 

minthost.com
localhostr.com
jonathancremin.com

CentOS 4.5 / Apache 2.2.6 / PHP 5.2.5 / MySQL 4.1.22 / Kohana 2.3

Profile
 
 
Posted: 19 December 2007 07:21 PM   [ Ignore ]   [ # 13 ]  
Grad Student
Rank
Total Posts:  37
Joined  12-13-2007

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)

Profile
 
 
Posted: 22 December 2007 01:44 AM   [ Ignore ]   [ # 14 ]  
Grad Student
Avatar
Rank
Total Posts:  88
Joined  05-22-2007

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 smile.

 Signature 

Thanks, CodyPChristian

Personal Blog: CodyPChristian.net
Owner of CPC Designs CPCDesgins.com

Profile
 
 
Posted: 27 December 2007 07:52 PM   [ Ignore ]   [ # 15 ]  
Summer Student
Avatar
Total Posts:  10
Joined  03-22-2007

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.

Profile
 
 
   
1 of 3
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 77482 Total Logged-in Users: 23
Total Topics: 101518 Total Anonymous Users: 2
Total Replies: 544257 Total Guests: 183
Total Posts: 645775    
Members ( View Memberlist )