Skip to content

Instantly share code, notes, and snippets.

@inadarei
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inadarei/9167667 to your computer and use it in GitHub Desktop.
Save inadarei/9167667 to your computer and use it in GitHub Desktop.
OpenSSL installation with native OS-X PHP
$  wget http://www.php.net/get/php-5.3.28.tar.gz/from/this/mirror
$  mv mirror php.5.3.28.tar.gz
$ tar xzvf php.5.3.28.tar.gz
$ cd php-5.3.28/
$ ./configure --with-openssl=shared
$ make
$ export OPENSSL_EXT_DIR=/usr/local/Cellar/php53-openssl # can be anything really as far as it matches value in the .ini file, later
$ mkdir $OPENSSL_EXT_DIR
$ cp modules/openssl.so $OPENSSL_EXT_DIR
$ cd /usr/local/etc/php/5.3/conf.d/
$ vi ext-openssl.ini

The value that ext-openssl.ini should have:

[openssl]
extension="/usr/local/Cellar/php53-openssl/openssl.so"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment