Skip to main content


Showing posts from July, 2016

Compile PHP 7 on Mac OS X 10.11 "El Capitain"

Apple has made a numerous changes to the way OS X (10.11) "El Capitain" uses open source elements like PHP and OpenSSL. Compiling PHP from source requires a bit more modifications. This article is a follow-up on my previous post Installing PHP 7 with XDebug, Apache and MySQL on OS X Yosemite OpenSSL Get the latest OpenSSL from and unpack it so you can work with the sources. Then just execute: ./Configure shared darwin64-x86_64-cc make depend make sudo make install PHP 7 Download the latest PHP 7 source code from and unpack it in a temporarily directory, I like to use /tmp. My configure command arguments: ./configure \ --prefix=/opt/php7 \ --enable-cli \ --enable-mbstring \ --enable-gd-native-ttf \ --enable-gd-jis-conv \ --enable-sockets \ --enable-exif \ --enable-ftp \ --enable-intl \ --enable-soap \ --enable-zip \ --with-apxs2 \ --with-iconv=/usr \ --with-config-file-path=/etc/php7 \ --with-config-file-scan-dir=/etc/php7/ext \ --with-libxml-dir=…