Php7 installation ---- php7 installation,
Download the latest php-7.0.5 from php.net
Decompress the package and go to the decompressed directory.
. /Configure -- prefix =/usr/local/php-7.0.5--- with-pdo-mysql = mysqlnd -- with-mysqli = mysqlnd -- with-gd -- with-iconv -- with-zlib -- enable -xml -- enable-bcmath -- enable-shmop -- enable-sysvsem -- enable-inline-optimization -- enable-mbregex -- enable-fpm -- enable-mbstring -- enable-ftp -- enable-gd -native-ttf -- with-openssl -- enable-pcntl -- enable-sockets -- with-xmlrpc -- enable-zip -- enable-soap -- without-pear -- with-gettext -- enable-session -- with-mcrypt -- with-curl -- with-jpeg-dir -- with-freetype-dir -- with-bz2-- With-config-file-path =/usr/local/php-7.0.5With-apxs2
Explanation: -- prefix =/usr/local/php-7.0.5 is to set the php installation directory, -- with-config-file-path to configure php. ini file location,-with-pdo-mysql = mysqlnd -- with-mysqli = mysqlnd to enable mysql support, you must not forget. -- The with-apxs2 with this sentence will generate the libphp7.so file, move this file to/usr/libexec/apache2/libphp7.so, and then add this sentence in the apache configuration file httpd. conf
LoadModule php7_module /usr/libexec/apache2/libphp7.so
If you do not know how to write parameters when using./configure, use./configure -- help to view