Skip to content

Instantly share code, notes, and snippets.

@ejmr
Created November 15, 2015 14:09
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 ejmr/bddbfabc58b20524b3ce to your computer and use it in GitHub Desktop.
Save ejmr/bddbfabc58b20524b3ce to your computer and use it in GitHub Desktop.
Fish Shell Function for Compiling PHP 7
function build-php --description="Build PHP from source in the current directory"
sh configure --prefix=/opt/php \
--with-openssl \
--enable-soap \
--enable-sockets \
--enable-intl \
--enable-ftp \
--enable-bcmath \
--enable-calendar \
--enable-zip \
--enable-debug \
--enable-mbstring \
--enable-fpm \
--enable-tokenizer \
--enable-posix \
--enable-ctype \
--with-pear \
--with-zlib \
--with-bz2 \
--with-curl \
--enable-pcntl \
--with-xsl \
--with-sqlite3=/usr/local \
--with-pdo-sqlite=/usr/local \
--enable-dtrace \
--enable-phpdbg \
--enable-phpdbg-webhelper \
--with-litespeed \
--enable-debug; and time make
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment