Category Archives: Systems administration

Setting up my development environment

The following are the commands I run to in stall my development environment:

sudo port install apache2

sudo port load apache2

sudo port install redis

sudo port load redis

sudo port install rabbitmq-server

sudo port load rabbitmq-server

sudo port install php56 +apache2 +mysql56 +pear

To customize php55, copy /opt/local/etc/php55/php.ini-development (if this is a development server) or /opt/local/etc/php55/php.ini-production (if this is a production server) to /opt/local/etc/php55/php.ini and then make changes.

sudo port install php56-bbcode

sudo port install php56-curl

sudo port install php56-exif

sudo port install php56-gd

sudo port install php56-gettext

sudo port install php56-geoip

sudo port install php56-iconv

sudo port install php56-imagick

sudo port install php56-mbstring

sudo port install php56-oauth

sudo port install php56-mysql

sudo port install php56-posix

sudo port install php56-memcache

sudo port load memcached

sudo port install php56-redis

sudo port install php56-sphinx

sudo port install php56-tidy

sudo port install php56-zip

sudo port install php56-openssl

sudo port install php56-apache2handler

cd /opt/local/apache2/modules

sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php56.so

Installing Apache2 and PHP5 on Mac OS X Snow Leopard

I recently migrated to Mac and I have to say I’m really happy so far. I’m running Mac OS X Snow Leopard. My development environment is as follows:

  • Apache 2
  • PHP 5.3
  • PDO MySQL
  • Apc
  • Memcache
  • Xdebug
  • Imagick

I used to work with XAMPP under Windows XP. When I migrated to Mac I was first using MAMP as Snow Leopard just went out and I ran into multiple problems trying to compile PHP with the necessary extensions. I just found out that it’s not a problem anymore with the latest installations of XCode and MacPorts. Here’s how to install your dev machine…

Continue reading