Installs the PHP IMAP Extension on OSX
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
php_imap.sh

README.md

PHP_IMAP_Installer

Installs the PHP IMAP Extension on OSX, as well as the dependancies needed to make it run-

  • PCRE
  • IMAP C Client Libraries
  • PHP IMAP Extension

Setup

When run on OSX this script needs the XCode Command Line Tools and autoconf.

First, to install the command line tools-

xcode-select --install

Then install autoconf using brew-

brew install automake

Run

Running this application is pretty straight forward.

./php_imap.sh

Cleanup

To finish simply add this line to your php.ini file-

extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/imap.so

Then clean up the build directory.

rm -rf /tmp/phpimapmountainlion/

Attribution

The original script was written by Ivan Vucica and was hosted on his blog.

It has since been updated by Robert Hafner.