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.

categories Mac, PHP, Web Design
tags apple, Mac

Related Posts

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

10 Responses to “Mac Mini and PHP”

  1. #1 Paul M. Jones responds...
    January 12th, 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. #2 tom responds...
    January 13th, 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. #3 gsuveg responds...
    January 14th, 2005 at 12:56 am

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

  4. #4 Mike responds...
    February 14th, 2005 at 8:16 pm

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

  5. BlogMac.net trackbacked on February 16th, 2005 at 8:27 am
  6. BlogMac.net trackbacked on February 16th, 2005 at 8:28 am
  7. Jeff Moore’s Blog » Blog Archive » Whats on my Mac pingbacked on April 19th, 2005 at 11:42 am
  8. Professional PHP » Blog Archive » Editing PHP pingbacked on May 21st, 2005 at 7:43 am
  9. #9 Sat responds...
    May 30th, 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. #10 Andy responds...
    July 29th, 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.

Leave a 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

  • Search

  • Subscribe

    Subscribe All Posts
    Subscribe All Comments
    Subscribe All Bookmarks
    Subscribe with Bloglines Subscribe with My Yahoo Add to netvibes Subscribe in NewsGator Online Add to Google
  • Share This

  • Categories (Home)

    • Agile Methods (14)
    • Mac (14)
    • Misc (16)
    • Open Source (14)
    • PHP (95)
    • Software Design (28)
    • Usability (14)
    • WACT (7)
    • Web Design (20)
  • Recent Comments

    • How to Transfer Mac OS X Application Data between Computers  38
      help, please?, Toby, Secret Santa [...]
    • The Problem with Markup Languages  10
      Wayne Whitty, Aaron Saray, Jack Teese [...]
    • Firefox Extensions for Web Developers  16
      lawyers2, Markus, Mitch [...]
    • PHP 5.1 is out  6
      Pochka, Anal Master, Joey [...]
    • Why is PHP Popular?  24
      downgams.ru, naruzhkas.ru, cablingworks.ru [...]
    • Working with PHP 5 in Mac OS X 10.5 (Leopard)  104
      Iman, irisv, Massimo [...]
    • PHP Development From Java Architects Eye  10
      ebezutyzuba, Bobrila, FelhoBacsi [...]
    • The Legality of Republishing RSS Feeds  16
      Andrew, Matt, Mandi [...]
    • nofollow and comment spam  4
      Tanya, sss, Nataly Marshak [...]
    • The PHP scalability saga continues  6
      uswipyq, 网上购物, Harry Fuecks [...]
    • php | tek 2008  4
      , Saumava, NatureLimit [...]
  • Pages

    • Tags
  • Recent Posts

    • 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)
    • Keywords and Language Simplicity
    • Improved Error Messages in PHP 5
    • Michigan Taxes Graphic Design Services
    • Ruby versus PHP or There and Back Again
  • Archives

    • 2008: May
    • 2007: Jan Feb Mar Apr May Sep Oct Nov
    • 2006: Jan Feb Mar Apr May Jun Jul Oct Nov Dec
    • 2005: Jan Feb Mar Apr May Sep Oct Nov Dec
    • 2004: Apr May Jun Jul Aug Sep Oct Nov
  • Menu

    • Register
    • Log in