Skip to content

Instantly share code, notes, and snippets.

@hayakawa
Last active April 7, 2017 04:59
Show Gist options
  • Save hayakawa/bc8cdc79f3a75999b3e956033ba1f193 to your computer and use it in GitHub Desktop.
Save hayakawa/bc8cdc79f3a75999b3e956033ba1f193 to your computer and use it in GitHub Desktop.
Build PHP 7.1.x from Source Tarball
#!/bin/bash
# Source: http://www.php.net/
cd ./php71
./configure \
\
--prefix=/usr/local/php71 \
\
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-phpdbg \
--enable-phpdbg-webhelper \
\
--with-config-file-path=/usr/local/apache2/conf \
--enable-libgcc \
--disable-short-tags \
\
--with-libxml-dir \
--with-openssl \
--with-kerberos \
--with-pcre-regex \
--with-pcre-jit \
--with-zlib \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
--with-curl \
--with-libxml-dir \
--enable-exif \
--with-pcre-dir \
--enable-ftp \
--with-gd \
--with-webp-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-xpm-dir \
--with-freetype-dir \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-gettext \
--with-gmp \
--with-mhash \
--with-imap \
--with-imap-ssl \
--enable-intl \
--with-icu-dir=/usr/ \
--enable-mbstring \
--with-mcrypt \
--with-mysqli \
--enable-pcntl \
--with-pdo-mysql \
--with-readline \
--enable-shmop \
--with-snmp \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--with-xmlrpc \
--with-xsl \
--enable-zip \
--enable-mysqlnd \
\
--with-pear=/usr/lib/php \
\
--with-tsrm-pthreads \
\
--with-gnu-ld \
--with-pic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment