Hi, PHP 7 was released last month. Many developers say that this major update Brings amazing speed improvement. You can see the Zend’s infographic below, it seems you should try PHP 7, I think. 🙂

PHP 7

How to upgrade to PHP 7 with nginx on Ubuntu 14.04 LTS

1. Add the PPA

sudo add-apt-repository ppa:ondrej/php-7.0
sudo apt-get update

2. Install PHP7.0-FPM and NGINX

sudo apt-get install php7.0-fpm
sudo apt-get install nginx

3. You only need to change a line in your site’s NGINX conf (in /etc/nginx/sites-available/)

Change this line

fastcgi_pass unix:/var/run/php5-fpm.sock;

to

fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

4. Restart the services

sudo service nginx restart
sudo service php7.0-fpm restart

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s