Apache, PHP and MongoDB on Mac OS X 10.6 Snow Leopard

MongoDB (from “humongous”) is a scalable, high-performance, open source, schema-free, document-oriented database.

There’s a lot of buzz brewing about it, so I wanted to give it a try with PHP on my development Mac. The following is how I went about installing Apache, PHP and MongoDB on Snow Leopard. You must have installed the Xcode developer tools (found on the Snow Leopard install DVD) and MacPorts for this to all work.

(more…)

2010-01-02 [, , , , , , ] 4 Comments

mod_rewrite and Mac OS X Personal Web Sharing

It was very frustrating installing a fresh Wordpress on my Mac and finding that the permalinks didn’t work. Turns out the default Apache settings for personal web sharing on OS X disable .htaccess overriding.

sudo mate /etc/httpd/users/yourusername.conf

Now you’ll want to enable Apache to follow symbolic links:

Options Indexes MultiViews FollowSymLinks

And to allow .htaccess overriding:

AllowOverride All

The file should then look like:

<Directory "/Users/yourusername/Sites/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Now in System Preferences, stop and start ‘Personal Web Sharing’. Things should work perfectly now.

2007-05-20 [, , , ] 8 Comments

Subversion 1.4.0 from source via Apache 2.2 on Ubuntu Dapper

This howto assumes you’ve already followed my Building Apache 2.2 from source article.

Now we’re going to install Subversion 1.4.0 from source so that it can be access via Apache with authentication.

(more…)

2006-10-17 [, , , , , , ] 9 Comments