cd /usr/local/src ; rm -R httpd-2.4.23 ; tar -xjf httpd-2.4.23.tar.bz2 ; cd /usr/local/src/httpd-2.4.23 ./buildconf --with-apr=/usr/local/src/apr-1.5.2 --with-apr-util=/usr/local/ src/apr-util-1.5.4 ./configure --prefix=/usr/local/apache2 --with-program-name=apache2 --with-mpm=prefork --disable-cgi --disable-imap --with-ssl --with-pcre --enable-mods-static="actions alias allowmethods auth-basic auth-digest authn-core authn-file authz-core authz-host authz-user autoindex cache deflate dir disk-cache dumpio env expires file-cache filter headers http http2 include info logio log-config mem-cache mime nghttp2-staticlib-deps negotiation proxy proxy-fcgi proxy-http rewrite remoteip setenvif slotmem_shm so socache-shmcb ssl status substitute unixd" make && ./apache2 -V && ./apache2 -t -D DUMP_MODULES && ./apache2 -t -D DUMP_VHOSTS
sudo service apache2 stop ; sudo make install && sudo service apache2 start
cd /usr/local/src/php-5.6.28 rm -R ext/amqp 2>/dev/null ; mkdir ext/amqp ; cp -R ../amqp-1.7.1/* ext/amqp/ rm -R ext/geoip 2>/dev/null ; mkdir ext/geoip ; cp -R ../geoip-1.1.1/* ext/geoip/ rm -R ext/http 2>/dev/null ; mkdir ext/http ; cp -R ../pecl_http-2.5.6/* ext/http/ rm -R ext/igbinary 2>/dev/null ; mkdir ext/igbinary ; cp -R ../igbinary-1.2.1/* ext/igbinary/ rm -R ext/redis 2>/dev/null ; mkdir ext/redis ; cp -R ../redis-2.2.8/* ext/redis/ rm -R ext/raphf 2>/dev/null ; mkdir ext/raphf ; cp -R ../raphf-1.1.2/* ext/raphf/ rm -R ext/propro 2>/dev/null ; mkdir ext/propro ; cp -R ../propro-1.0.2/* ext/propro/ rm -R ext/imagick 2>/dev/null ; mkdir ext/imagick ; cp -R ../imagick-3.4.1/* ext/imagick/ rm -R ext/timezonedb 2>/dev/null ; mkdir ext/timezonedb ; cp -R ../timezonedb-2016.9/* ext/timezonedb/ rm -R ext/ssh2 2>/dev/null ; mkdir ext/ssh2 ; cp -R ../ssh2-0.13/* ext/ssh2/ rm -R ext/libsodium 2>/dev/null ; mkdir ext/libsodium ; cp -R ../libsodium-php-1.0.6/* ext/libsodium/ cd /usr/local/src/php-5.6.28 rm configure ; ./buildconf --force ; make clean ./configure --prefix=/usr/local/php56 --disable-all --with-apxs2=/usr/local/apache2/bin/apxs --with-iconv=/usr/local/lib --with-icu-dir=/usr/local --enable-libxml --enable-xml --enable-dom --enable-ctype --with-curl=/usr/local --enable-json --enable-session --enable-simplexml --with-sqlite3 --enable-pdo --with-pdo-mysql --with-pdo-sqlite --with-zlib=/usr/local --with-openssl --enable-soap --enable-bcmath --with-bz2 --enable-calendar --enable-exif --enable-ftp --with-gd --with-gettext --with-libxml-dir --enable-mbstring --with-mcrypt --with-mhash --with-pcre-dir --with-pcre-regex --enable-shmop --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-xsl --enable-zip --with-geoip --enable-filter --enable-hash --enable-igbinary --with-mysqli --enable-tokenizer --enable-xmlreader --enable-xmlwriter --enable-posix --enable-gd-native-ttf --with-t1lib --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-freetype-dir=/usr/local --with-vpx-dir=/usr/local --with-imagick=/usr/local --enable-redis --disable-redis-session --enable-redis-igbinary --enable-timezonedb --enable-fileinfo --enable-intl --with-kerberos --enable-raphf --enable-propro --with-http-libevent-dir=/usr/ local --with-http --enable-opcache --with-tidy --with-librabbitmq-dir=/usr/ local --with-amqp --with-libsodium --with-ssh2=shared
make && ./sapi/cli/php -m && ./sapi/cli/php -v
sudo make install && php56 -m && php56 -v#sudo service apache2 restart
cd /usr/local/src/php-7.1.0 rm -R ext/amqp 2>/dev/null ; mkdir ext/amqp ; cp -R ../amqp-1.7.1/* ext/amqp/ rm -R ext/geoip 2>/dev/null ; mkdir ext/geoip ; cp -R ../geoip-1.1.1/* ext/geoip/ rm -R ext/igbinary 2>/dev/null ; mkdir ext/igbinary ; cp -R ../igbinary-2.0.0/* ext/igbinary/ ; cp ../igbinary-2.0.0/src/php7/php_igbinary.h ext/igbinary/ rm -R ext/redis 2>/dev/null ; mkdir ext/redis ; cp -R ../redis-3.0.0/* ext/redis/ rm -R ext/imagick 2>/dev/null ; mkdir ext/imagick ; cp -R ../imagick-3.4.3RC1/* ext/imagick/ rm -R ext/timezonedb 2>/dev/null ; mkdir ext/timezonedb ; cp -R ../timezonedb-2016.9/* ext/timezonedb/ rm -R ext/ssh2 2>/dev/null ; mkdir ext/ssh2 ; cp -R ../ssh2-1.0/* ext/ssh2/ rm -R ext/libsodium 2>/dev/null ; mkdir ext/libsodium ; cp -R ../libsodium-php-1.0.6/* ext/libsodium/ cd /usr/local/src/php-7.1.0 rm configure ; ./buildconf --force ; make clean ./configure --prefix=/usr/local/php71 --disable-all --with-apxs2=/usr/local/ apache2/bin/apxs --with-iconv=/usr/local/lib --with-icu-dir=/usr/local --enable-libxml --with-libxml-dir --enable-xml --enable-dom --enable-ctype --with-curl=/usr/local --enable-json --enable-session --enable-simplexml --enable-pdo --with-pdo-mysql --with-zlib=/usr/local --with-openssl --with-openssl-dir=/usr/local/ lib --enable-soap --enable-bcmath --with-bz2 --enable-calendar --enable-exif --enable-ftp --with-gd --with-gettext --enable-mbstring --with-mcrypt --with-mhash --with-pcre-dir --with-pcre-regex --enable-shmop --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-xsl --enable-zip --with-geoip --enable-filter --enable-hash --enable-igbinary --with-mysqli --enable-tokenizer --enable-xmlreader --enable-xmlwriter --enable-posix --enable-gd-native-ttf --with-jpeg-dir --with-png-dir --with-xpm-dir --with-freetype-dir --with-webp-dir --with-imagick=/usr/local --enable-redis --disable-redis-session --enable-redis-igbinary --enable-timezonedb --enable-fileinfo --enable-intl --with-kerberos --enable-opcache --with-tidy --with-librabbitmq-dir=/usr/ local --with-amqp --with-libsodium --with-ssh2=shared
make && ./sapi/cli/php -m && ./sapi/cli/php -vsudo make install && php71 -m && php71 -v#sudo service apache2 restart