wget http://am1.php.net/get/php-7.1.4.tar.gz/from/this/mirror
tar -xf mirror
cd php-7.1.4/
yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel pcre-devel curl-devel libxslt-devel libmcrypt-devel gd-devel openssl openssl-devel
yum install gcc-c++ gcc
wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz
tar -xf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
./configure
make && make install
useradd nginx -s /sbin/nologin -M
./configure \ --prefix=/install/php7 \ --with-openssl \ --with-mysqli \ --with-pdo-mysql \ --with-gd \ --with-iconv \ --with-zlib \ --enable-zip \ --enable-inline-optimization \ --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 \ --without-pear \ --with-gettext \ --enable-session \ --with-curl \ --with-jpeg-dir \ --with-freetype-dir \ --enable-opcache \ --enable-fpm \ --with-fpm-user=nginx \ --with-fpm-group=nginx \ --without-gdbm \ --with-pcre-regex \ --with-png-dir \ --enable-fileinfo
make && make install
echo 'PATH=/install/php7/bin/:$PATH' >> /etc/profile source /etc/profile cat /etc/profile php -i |grep 'php.ini' cp /soft/src/php-7.1.4/php.ini-production /install/php7/lib/php.ini