Quick installation of PHP 7 shell scripts
PHP7 was officially released on September 12, 5.6, with a much higher performance than version. therefore, try to install php7 and configure it in php. ini. Zend_extension = opcache. so Opcache. enable = 1 Opcache. enable_cli = 1 Indeed, the performance has improved a lot.
- #! /Bin/bash
- Apt-get update
- Apt-get install-y git-core autoconf bison libxml2-dev libbz2-dev libmcrypt-dev libcurl4-openssl-dev libltdl-dev libpng-dev libpspell-dev libreadline-dev libicu-dev build-essential
- Mkdir-p/usr/local/php7/etc/conf. d
- Mkdir/usr/local/php7
- Cd/tmp
- Git clone http://git.php.net/repository/php-src.git -- depth = 1
- Cd php-src
- ./Buildconf
- . /Configure -- prefix =/usr/local/php7 -- enable-intl -- enable-fpm -- with-fpm-user = www -- with-fpm-group = www -- enable-bcmath -- with-bz2 -- enable-exif -- enable-dba -- enable-ftp -- with-gettext -- with-gd -- enable-mbstring -- with-mcrypt -- with-mhash -- enable-mysqlnd --- mysqli = mysqlnd -- with-pdo-mysql = mysqlnd -- with-openssl -- enable-pcntl -- with-pspell -- enable-shmop -- enable-soap -- enable-sockets -- enable-sysvmsg -- enable-sysvsem -- enable-sysvshm -- enable-wddx -- with-zlib -- enable-zip -- with-readline -- with-curl -- with-config-file-path =/usr/local /php7/etc -- with-config-file-scan-dir =/usr/local/php7/etc/conf. d
- Make
- Make install
|
Shell