boztek

: [Boris Gordon]

php

UPDATED: Install PHP 5.2 stack from source on Mac OS X 10.6 Snow Leopard using Homebrew

I've updated the instructions to build a nice clean and fast PHP 5.2 stack using my own build scripts and the homebrew build system.

All software is installed into /usr/local for easy management and while it works with the included OS X Apache and libraries where possible it is installed in such a way that system updates from Apple don't clobber anything.

I use this stack as my local PHP and Drupal development environment.

The instructions are rather verbose but if you don't really care how it's done I've included a build script below that will do everything except the final configuration work.

Install LAMP stack from source on Mac OS X 10.6 Snow Leopard using Homebrew

Here is a guide on using Homebrew to install a PHP 5.2 based stack that will live along side the PHP 5.3 that the Mac OS X 10.6 ships with. Currently this installs MySQL 5.1.41, PHP 5.2.12 and all dependencies.

It is for use with the Apache that ships with Snow Leopard and is compiled as 64-bit binaries on appropriate hardware, using the LLVM compiler.

Setting up a LAMP stack from source on Mac OS X 10.6

I'm maintaining some build scripts that are part of the Homebrew project. You can clone my fork with scripts to build PHP 5.2, MySQL and dependencies that will work with Snow Leopard's built-in Apache. I'll write a complete tutorial shortly that will get you from zero to LAMP heaven (with a Drupal focus) with as little pain as possible.

UPDATE: First tutorial on [installing LAMP from source on mac os x 10.6](http://boztek.net/blog/2009/10/07/install-lamp-stack-source