Last active
July 3, 2018 12:29
-
-
Save rongself/830ff55e57789e08c3f00c2fff81872b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum -y install gcc gcc++ gcc-c++ wget make libmcrypt libmcrypt-devel libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel bison autoconf | |
sudo wget http://cn2.php.net/distributions/php-7.1.17.tar.gz | |
sudo tar -zxvf php-7.1.17.tar.gz | |
cd php-7.1.17 | |
./configure \ | |
--prefix=/usr/local/php71 \ | |
--exec-prefix=/usr/local/php71 \ | |
--bindir=/usr/local/php71/bin \ | |
--sbindir=/usr/local/php71/sbin \ | |
--includedir=/usr/local/php71/include \ | |
--libdir=/usr/local/php71/lib/php \ | |
--mandir=/usr/local/php71/php/man \ | |
--with-config-file-path=/usr/local/php71/etc \ | |
--with-mysql-sock=/var/run/mariadb/mariadb.pid \ | |
--with-mcrypt \ | |
--with-mhash \ | |
--with-openssl \ | |
--with-mysqli=shared,mysqlnd \ | |
--with-pdo-mysql=shared,mysqlnd \ | |
--with-gd \ | |
--with-iconv \ | |
--with-zlib \ | |
--enable-zip \ | |
--enable-inline-optimization \ | |
--disable-debug \ | |
--disable-rpath \ | |
--enable-shared \ | |
--enable-xml \ | |
--enable-bcmath \ | |
--enable-shmop \ | |
--enable-sysvsem \ | |
--enable-mbregex \ | |
--enable-mbstring \ | |
--enable-ftp \ | |
--enable-gd-native-ttf \ | |
--enable-pcntl \ | |
--enable-sockets \ | |
--with-xmlrpc \ | |
--enable-soap \ | |
--with-pear \ | |
--with-gettext \ | |
--enable-session \ | |
--with-curl \ | |
--with-jpeg-dir \ | |
--with-freetype-dir \ | |
--enable-opcache \ | |
--enable-fpm \ | |
--without-gdbm \ | |
--enable-fast-install \ | |
--enable-fileinfo | |
make test && make && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment