Skip to content

Instantly share code, notes, and snippets.

@errogaht
Created January 10, 2016 12:26
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 errogaht/01bfca291231326a8428 to your computer and use it in GitHub Desktop.
Save errogaht/01bfca291231326a8428 to your computer and use it in GitHub Desktop.
cent os 7 php 7 build
yum group install "Development Tools"
yum group install "Development Libraries"
yum install libxml2-devel openssl-devel git autoconf gcc bison bzip2-devel curl-devel libjpeg-devel freetype-devel libmcrypt libmcrypt-devel mhash \
mhash-devel php-mysql mysql-devel aspell-devel libtidy libtidy-devel libxslt libxslt-devel glibc-utils libtool-ltdl-devel libpng-devel db4-devel libXpm-devel \
gmp-devel libc-client-devel openldap-devel unixODBC-devel postgresql-devel sqlite-devel net-snmp-devel pcre-devel t1lib-devel recode-devel expat-devel
./configure \
--prefix=/opt/php70 \
--with-config-file-path=/opt/php70/etc \
--with-config-file-scan-dir=/opt/php70/etc/php.d \
--with-libdir=lib64 \
--with-curl \
--with-mcrypt \
--with-iconv \
--with-gmp \
--with-pspell \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib-dir=/usr \
--with-xpm-dir=/usr \
--with-freetype-dir=/usr \
--with-openssl \
--with-pdo-mysql=/usr \
--with-gettext=/usr \
--with-zlib=/usr \
--with-bz2=/usr \
--with-recode=/usr \
--with-mysqli=/usr/bin/mysql_config \
--enable-cli \
--enable-pdo \
--enable-mbstring \
--enable-zip \
--enable-bcmath \
--enable-pcntl \
--enable-ftp \
--enable-exif \
--enable-calendar \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-gd-native-ttf \
--enable-gd-jis-conv
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment