PHP7은 2015년부터 12월까지 정식 출시되었는데, 버전 5.6에 비해 성능이 많이 향상되었으니 php7을 설치하고 php에서
zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli를 설정해 보세요. ini =1
물론 성능도 많이 좋아졌습니다.
#!/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