Home > Article > Backend Development > PHP7+MySQL57+Nginx19 on Ubuntu 1404
This article is reproduced from: http://www.07net01.com/2016/01/1121802.html
Some time ago, PHP was upgraded to version 7.0, which is said to be very good. For example, the performance is doubled compared to 5.6, and the memory usage is low. , and later I saw on Weibo that it would not be stable until 7.0.1. As expected, it was upgraded very quickly. I have only recently had time to tinker with it, and here is a summary.
Environment: 1 core 1G host instance
OS:ubuntu 14.04.3
Nginx 1.9.9
PHP 7.0.1
mysql 5.7.10
Nginx1.9.9
Download signing key
wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key
Add nginx source
echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" >> /etc/apt/sources.list
echo "deb-src http://nginx.org/packages/ubuntu/ trusty nginx" >> /etc/apt/sources.list
Install nginx
apt-get update
apt-get install nginx
PHP7.0.1
apt-get install python-software-properties
add-apt-repository ppa:ondrej/php-7.0
apt-get install php7.0-fpm
Do some configuration :
vi /etc/php/7.0/fpm/php.ini #Uncomment the line cgi.fix_pathinfo=1 and change 1 to 0.
MySQL 5.7.10
Download the apt file
dpkg -i mysql-apt-config_xx_all.deb
apt-get update
apt-get install mysql-server
Dependent environment:
sudo apt-get install php7.0-cli php7.0-common php7.0-curl php7.0-gd php7.0-mysql libxml2 libxml2-dev build-essential openssl libssl-dev libcurl4-gnutls-dev libjpeg-dev libpng-dev libmcrypt-dev libreadline6 libreadline6-dev libgd-dev libxslt-dev
Perform a simple configuration (you can compare and configure it with the previous notes) and then the environment will be set up
The above introduces PHP7+MySQL57+Nginx19 on Ubuntu 1404, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.