events

April 16, '10

Presented the H.K. Douglas Cotton Memorial Lecture at Gilman School, Baltimore, MD.

February 10, '10

Speaking at Stanford's Entrepreneurial Thought Leader's Seminar Series.

November 3, '09

Speaking on the Enabling Innovation panel at SAP in Palo Alto.

September 3, '09

Presenting at DartBoston's Pokin' Holes at Vintage Lounge in Boston.

May 13, '09

Speaking at the SDForum Tech Titans of Tomorrow: Teens Plugged In conference at Hewlett Packard.

April 25, '09

Speaking at the I Don't Know to CEO conference at Stanford.

April 7, '09

Speaking at the ASES Summit at Stanford on the Young Entrepreneurs panel.

just in

    loading Twitter stream...
Sep 02

Installing PHP 5.2.10 on Mac OS X 10.6 Snow Leopard

Apple deserves serious props for bringing the installed version of PHP up to 5.3 on Snow Leopard, but some projects *cough CakePHP* can’t yet handle the goodness.

Sure, you could virtualize Ubuntu running whatever setup you desired, but if you already had a local setup on Leopard, it might make more sense to downgrade to PHP 5.2 and get back to work.

There’s a lot of confusion and little documentation online about how this is done, so here is the easiest way to make it happen:

  1. Install the “Snow Leopard” version of MacPorts from: http://www.macports.org/install.php
  2. In Terminal, run:
    > sudo port -v selfupdate
    > sudo port -f uninstall installed
    > sudo port install php52 +mysql5 +sqlite
    > sudo cp /opt/local/etc/php5/php.ini-dist /opt/local/etc/php5/php.ini
  3. Open /etc/apache2/httpd.conf and change line 114 from:
    LoadModule php5_module        libexec/apache2/libphp5.so
    to:
    LoadModule php5_module        /opt/local/apache2/modules/libphp5.so
  4. Open /opt/local/etc/php5/php.ini and change line 761 from:
    mysql.default_socket =
    to:
    mysql.default_socket = /var/mysql/mysql.sock
  5. Use the Sharing pane of System Preferences to stop and start Web Sharing

Purists will argue that you now have lots of extra software installed on your system, which is true, but let’s be real: these 5 steps are the fastest way to get back to being productive.

Update (March 30, 2010): If you are seeing weird errors with curl and SSL/https connections, it’s because the version of libcurl that this install is NOT compatible. Here’s how to fix it:

> sudo mv /opt/local/lib/libcurl.4.dylib /opt/local/lib/libcurl.4.dylib.old
> sudo ln -s /usr/lib/libcurl.4.dylib /opt/local/lib/libcurl.4.dylib

> sudo mv /opt/local/lib/libcurl.dylib /opt/local/lib/libcurl.dylib.old
> sudo ln -s /usr/lib/libcurl.dylib /opt/local/lib/libcurl.dylib

Enjoy!

Permalink
Comments

about jeff

Jeff Seibert

Jeff Seibert co-founded Increo Solutions, Inc. in 2007 and served as its President and COO until its acquisition by Box.net, Inc. in August of 2009. He currently works for Box as a Software Engineer where he manages the integration of Increo's document preview and annotation technologies into the company's online document management platform.

Seibert gained experience at Apple, Inc. in both marketing and engineering capacities and served as Co-Coordinator of Stanford University's Entrepreneurial Thought Leaders seminar series. He was selected as a Mayfield Fellow in 2007 and received a B.S. in Computer Science from Stanford University in 2008.

Seibert discovered his passion for entrepreneurship at a young age, founding Arios Software and developing and selling Macintosh desktop software during high school at Gilman in Baltimore, MD. Outside of work, he tries to spend as much time away from the computer as possible, whether it be surfing, snowboarding, or playing tennis.

photos

loading photo stream...