https://cyberpersons.com/2016/08/28/install-nginx-php-php-fpm-mysql-source-run-wordpress-site-ubuntu-16-04/
----------------------
1 Downloads
wget Http://sg2.php.net/get/php-5.6.35.tar.gz/from/this/mirror
2.
./configure--help
./configure--enable-so
./configure--enable-fpm--with-mcrypt--enable-mbstring--with-openssl--with-mysql--with-mysql-sock--WITH-GD-- With-jpeg-dir=/usr/lib--enable-gd-native-ttf--with-pdo-mysql--with-libxml-dir=/usr/lib--with-mysqli=/usr/bin/ Mysql_config--with-curl--enable-zip--enable-sockets--with-zlib--enable-exif--enable-ftp--with-iconv-- With-gettext--enable-gd-native-ttf--with-freetype-dir=/usr--prefix=/opt/php-5.6--with-config-file-path=/opt/ Php-5.6/etc--with-fpm-user=www-data--with-fpm-group=www-data --enable-fpm
Apt-get Install Libxml2-dev
Apt-get Install Libcurl4-openssl-dev Pkg-config
Apt-get Install Libssl-dev Libsslcommon2-dev
sudo apt-get install Libjpeg-turbo8-dev
sudo apt-get install Libpng-dev
Apt Install Libfreetype6-dev
Apt-get Install Libt1-dev
Apt-get Install Php5-mcrypt
Apt Install Libmcrypt-dev
Apt Install mysql-server-5.7
sudo apt-get install Libmysqlclient-dev
3. Start PHP-FPM
Cp.. /etc/php-fpm.conf.default. /etc/php-fpm.conf
./php-fpm
--------------------------------------------------------------------------------------------------------------- -----
Cd
cd Downloads wget http://us2.php.net/distributions/php-7.0.10.tar.gz tar zxf php-7.0.10.tar.gz CD php-7.0.10 # Multiple lines command./Configure --Prefix=/Usr/Local/nginx/php --enable-fpm --with-mysqli=/usr /bin/mysql_config< Span class= "crayon-h" > --with-zlib --with -curl # Multiple lines command end here# Run following to finalize the PHP install Makesudo make install
PHP Source code Compilation