Professional PHP

PHP Programming, Web Development, PHP Advocacy and PHP Best Practices.
« The value of MVC
nofollow and comment spam »

Mac Mini and PHP

January 11th, 2005

I read various live blogs during the Mac World event today. It was interesting to see servers melt and the strategies people used to cope. A busy day in the Apple universe.

I just want to point out that the Mac mini comes with Apache and PHP pre-installed.

If you want, compiling a new version of PHP on the Mac is pretty easy if you have ever compiled anything on unix. If you have trouble compiling PHP extensions on OS X its probably due to this bug, which has an easy work around. You can also download an OS X PHP binary.

Compiling MySQL is also easy, or you can download a binary. If your flavor is postgresSQL, then compile or download that, too.

Bare Bones just released a free version of TextWrangler. TextWrangler and its paid version, BBEdit, are superb text editors for PHP. The diff and grep (multi file) capabilities are very good. Open via FTP/SFTP is handy and it knows what to do with unix permissions. It does does syntax highlighting, is fast, and it stays out of the way.

The following shell command will cause TextWrangler to use php.net for the find in reference command:

defaults write com.barebones.textwrangler Services:ADCReferenceSearchTemplate "http://www.php.net/search.php?show=quickref&pattern=%@"

I understand you can also use PHP with Apple’s Dev Tools (XCode), but I don’t. XCode is free with OS X, but not installed by default.

OS X comes with CVS, too. Unfortunately, text wrangler doesn’t integrate with it as BBEdit and XCode do.

The Mac is a great PHP development platform.

I will end this evangelizing post with a pure marketing quote from the Apple site for the Mac mini:

Perfect for Programmers
Set a space-saving Mac mini atop your workstation PC and add a KVM switch to share keyboard, monitor and mouse. Mac OS X includes free developer tools for Mac, UNIX and Java. Test out a Mac version of your latest creation, instantly. Pretty soon you’ll be using the Mac full-time, with that PC relegated to the testbed.

Filed Under

  • Mac, PHP, Web Design

Related Posts

  • Editing PHP
  • PHP Games
  • Whats on my Mac
  • PHP Application Security
You can leave a response, or trackback from your own site.

11 Responses to “Mac Mini and PHP”

  1. Paul M. Jones says:
    1/12/2005 at 7:37 am

    Preach the word, brother. My home machine is a Cube, originally G3/450MHz, now upgraded to G4/1.4GHz, and I use BBEdit everywhere all the time. It is a fantastic web development platform. (The new Mini looks like a half-Cube on its side. I am covetous of it. ;-)

  2. tom says:
    1/13/2005 at 11:11 am

    perfect.. in that case, for a home server! already configured.

    and it runs quiet.. which is the most important thing. oh, and it’s cheap, and good looking in the corner.

  3. gsuveg says:
    1/14/2005 at 12:56 am

    you can use jedit under OSX, and its free, and many plugin avaliable.

  4. Mike says:
    2/14/2005 at 8:16 pm

    Now they’re giving away Mac minis! Details are available on my blog.

  5. BlogMac.net says:
    2/16/2005 at 8:27 am

    Mac mini Analysis
    Clearly a cross between the Cube and the LC, but what are the good and the bad points of the first cheap headless Mac for over 5 years?

  6. BlogMac.net says:
    2/16/2005 at 8:28 am

    Mac mini Analysis
    Clearly a cross between the Cube and the LC, but what are the good and the bad points of the first cheap headless Mac for over 5 years?

  7. Jeff Moore’s Blog » Blog Archive » Whats on my Mac says:
    4/19/2005 at 11:42 am

    [...] Jackson Miller asks “Whats on your Mac?” Here goes: MySQL, PHP 4 and PHP 5 as described here. Also, phpMyAdmin. I use a personal version of squid using AdZapper becau [...]

  8. Professional PHP » Blog Archive » Editing PHP says:
    5/21/2005 at 7:43 am

    [...] integrating phpm with TextWrangler, which is what I am using right now to edit php. (see mac mini and php) Being able to look up parameters in my editor would be a big [...]

  9. Sat says:
    5/30/2005 at 9:42 am

    I’ve created a package for XCode which enables PHP syntax coloring and project creation. It can be downloaded at: http://www.mr-technical.com/public/?q=node/13

  10. Andy says:
    7/29/2005 at 12:13 am

    Thanks for the php.net reference tip – it’s great. I love TextWrangler. Something similar for Windows (though not quite as powerful, and shareware, not free) is TextPad (http://www.textpad.com/) – I have used it happily for years. Like TW, it has very powerful regular-expression support, and other unique features like column-select, cut and paste.

  11. Miss29 says:
    10/22/2009 at 5:55 pm

    In that step, parts of the original transcript are spliced out and discarded. ,

Leave a Reply

Click here to cancel reply.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

code: use [code=php][/code].

Comment Preview

    Subscribe Feed
    Share Subscribe to this blog…
    Share Bookmark or share this page…
  • About

    My name is Jeff Moore. I'm a PHP programmer living in San Francico and working for a startup.

    More about me…

  • Categories (Home)

    • Agile Methods (14)
    • Mac (14)
    • Misc (17)
    • Open Source (14)
    • PHP (98)
    • Software Design (29)
    • Usability (14)
    • Web Design (20)
  • Recent Comments

    • Programming Language Trends via Google  19
      Craigslist pva, jessica, Scott [...]
    • Looking Towards the Cloud  35
      bentonville multiple listing, cosmetic dental, Sam Brodish [...]
    • PHP versus ASP  8
      Marhta Blight, Ravi, Ryan Brooks [...]
    • How to Transfer Mac OS X Application Data between Computers  59
      Website Migration, harry the computer support guy, Dotty Salvage [...]
    • Working with PHP 5 in Mac OS X 10.5 (Leopard)  157
      lehuuphuc, Robert Parthemer, Lingerie Intimate [...]
    • PHP Games  25
      jessica, Tennille Cranor at Chilli Plants, Lucas Ortell [...]
    • un-PEAR-ing  5
      jessica, Eugene Panin, Arnaud [...]
    • The Legality of Republishing RSS Feeds  23
      kevinxiao, Marissa Miscovich, Quick Student Loans [...]
    • Faster Page Loading  4
      jessica, angular cheilitis, Aaron Rosenfeld [...]
    • PDO versus MDB2  15
      jessica, kevinxiao, Gavin [...]
  • Recent Posts

    • ZendCon: Writing Maintainable PHP Code
    • Looking Towards the Cloud
    • Holiday Tech Support
    • Closures are coming to PHP
    • php | tek Wrapup
    • php | tek 2008
    • Sarah Snow Stever
    • Benchmarking PHP’s Magic Methods
    • The Endpoints of the Scale of Stupidity on Video
    • Working with PHP 5 in Mac OS X 10.5 (Leopard)
  • Site

    • Archives
    • Log in
  • Search