Quick installation of PHP 7 shell scripts

Source: Internet
Author: User
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.

  1. #! /Bin/bash
  2. Apt-get update
  3. 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
  4. Mkdir-p/usr/local/php7/etc/conf. d
  5. Mkdir/usr/local/php7
  6. Cd/tmp
  7. Git clone http://git.php.net/repository/php-src.git -- depth = 1
  8. Cd php-src
  9. ./Buildconf
  10. . /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
  11. Make
  12. Make install

Shell

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.