WordPress on Mac OSX Server

I finally got around to moving my WordPress installation off of a hosted server to my Mac Mini Server at home.  This entailed making sure I had a static IP from Comcast, and getting all of the firewall pieces in place.  Once that was done, I had to learn the quirks of doing web hosting on Mac OSX Server.
Thankfully, most of the hacks needed in the past are now checkboxes in the Web configuration portion of the Server Administrator.  Don't get me wrong – I don't generally like the simple approach – I like having all of the bells and whistles available to me from the command line.  But with Mac OSX Server, I know that whatever I hack at the CLI might get overriden in an upgrade.
From my experience, it requires no hacks to get WordPress working on OSX 10.6.x.  There are many articles out there showing the necessary parts of moving the SQL database and web files into place.
The biggest mystery was getting mod_rewrite to work correctly so that I could maintain my nice URLs.  This was documented many places on the web where you had to change configuration files in /private/etc/apache2, but nothing for hosted sites.  I found those config files in /private/etc/apache2/sites, but still didn't want to manually change them for fear they would get overwritten when I edited something in Server Admin later, or during an upgrade.
After a bit of poking around, I found the "Allow All Overrides" option in the Server Admin -> Web -> Sites -> Options area.  Once you have this enabled, your .htaccess file in the root of your WordPress directory will be read and rewrites will work appropriately.
Some of the realtime stats for the web server are nice compared to the other solutions I've used.  It's interesting to see requests and throughput for the whole server, as well as be able to quickly change log levels and locations for troubleshooting.
So far it's been a painless migration, and things are working very well.

Speak Your Mind

*