Shell script to quickly install php7
Release: 2016-07-25 08:46:02
Original
844 people have browsed it
PHP7 was officially released from 2015 to December, and its performance has improved a lot compared to version 5.6, so I tried installing php7 and configured zend_extension=opcache.so opcache.enable=1 opcache.enable_cli=1 in php.ini, and sure enough the performance 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 --with-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
-
Copy code
|
shell
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31