Skip to content

Instantly share code, notes, and snippets.

@faizal2007
Created May 3, 2017 23:41
Show Gist options
  • Save faizal2007/2f49a042e21b7204687b127339e0f07f to your computer and use it in GitHub Desktop.
Save faizal2007/2f49a042e21b7204687b127339e0f07f to your computer and use it in GitHub Desktop.
phpfarm compile option
#!/bin/bash
# You can override config options very easily.
# Just create a custom options file; it may be version specific:
# - custom-options.sh
# - custom-options-5.sh
# - custom-options-5.3.sh
# - custom-options-5.3.1.sh
#
# Don't touch this file here - it would prevent you to just "svn up"
# your phpfarm source code.
version=$1
vmajor=$2
vminor=$3
vpatch=$4
#gcov='--enable-gcov'
configoptions="\
--enable-fpm \
--enable-fastcgi \
--enable-pdo \
--with-pdo-mysql \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-ftp \
--with-pcre \
--enable-mbstr-enc-trans \
--enable-mbstring \
--enable-pcntl \
--enable-soap \
--enable-sockets \
--enable-sqlite-utf8 \
--enable-wddx \
--enable-zip \
--with-zlib \
--enable-dba \
--enable-gd-native-ttf \
--with-mysql \
--with-mysqli \
--with-iconv \
--with-zlib \
--with-bz2 \
--with-gettext \
--with-xmlrpc \
--with-openssl \
--with-mhash \
--with-mcrypt \
--with-xsl \
--with-curl \
--with-pcre-regex \
--with-gd \
--with-freetype-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-libxml-dir=/usr/local/libxml \
--with-pear \
--with-fpm-user=www-data \
--with-fpm-group=www-data \
--with-config-file-path=/etc/php5/ \
--with-config-file-scan-dir=/etc/php5/conf.d/ \
--with-libdir=lib/x86_64-linux-gnu \
--with-gettext \
$gcov"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment