intl extension

Use “port” to install php5-intl

sudo port install php5-intl

Copy intl.so into active php extensions directory

sudo cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so /usr/lib/php/extensions/no-debug-non-zts-20090626/

Add “extension=intl.so” into php.ini

sudo nano /etc/php.ini

Restart apache

sudo apachectl restart

Install MacPorts

Download Mac OS X Package (.pkg) Installer, http://www.macports.org/install.php By default port is installed the directory /opt/local/bin. To correct PATH issue add the path /opt/local/bin as an extra line to the plain text file /etc/paths To keep your MacPorts system always current

sudo port -v selfupdate

Install Xcode

Open AppStore, search and install Xcode. To install Command Line Tool components for Xcode, go to Xcode Preferences and click Downloads tab. You will see Command Line Tools and install it.

Memcache

Install memcached

sudo port install memcached

Set memcached to load on startup

sudo port load memcached

Install the php5 module

sudo port install php5-memcache

Copy the newly created shared object for memcache into Mac OS X’s default PHP5 extension directory

sudo cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so /usr/lib/php/extensions/no-debug-non-zts-20090626/

Add extension to php.ini

extension=memcache.so

Restart apache

sudo apachectl restart

PHP Accelerator (APC)

Install the php5 module

sudo port install php5-apc

Copy the newly created shared object for APC into Mac OS X’s default PHP5 extension directory

sudo cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/apc.so /usr/lib/php/extensions/no-debug-non-zts-20090626/

Add extension to php.ini

extension=apc.so

Restart apache

sudo apachectl restart