Add Internationalization extension to PHP on Mac OS X 10.9 Mavericks Server

You can easily install the intl international support extension to PHP 5.4 on Mac OS X 10.9 Mavericks Server. Here’s how:

OSX-Mavericks-Icon

Mavericks Upgrade Notice

If you’ve upgraded to Mavericks from an earlier version, and you’ve installed PHP extensions using MacPorts, read this article to upgrade PHP extensions for Mavericks server before continuing with this article.

Download and install MacPorts from http://macports.org.

The following steps are performed in the Terminal:

Force MacPorts to update:

Now, install intl:

Next, you need to edit /etc/php.ini to add the extensions. Find the phrase Dynamic Extensions, and add:

And finally, restart Apache:

To confirm installation, create a new PHP document called phpinfo.php with the following contents:

Point your browser to the URL of that file. If all went well, you’ll see this block:

intl extension loaded into Mac OS X Mavericks Server's default PHP 5.4 installation

One thought on “Add Internationalization extension to PHP on Mac OS X 10.9 Mavericks Server

  1. Pingback: Create a Dropbox clone on Mac OS X Mavericks using OwnCloud | Garbage In Garbage Out : Tech Blog

Leave a Reply