PHP7+MySQL57+Nginx19 on Ubuntu 1404

WBOY
Release: 2016-07-29 08:55:48
Original
1253 people have browsed it

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

<code>OS:ubuntu 14.04.3
Nginx 1.9.9
PHP 7.0.1
mysql 5.7.10
</code>
Copy after login

Nginx1.9.9

Download signing key

<code>wget http://nginx.org/keys/nginx_signing.key 
apt-key add nginx_signing.key
</code>
Copy after login

Add nginx source

<code>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
</code>
Copy after login

Install nginx

<code>apt-get update
apt-get install nginx
</code>
Copy after login

PHP7.0.1

<code>apt-get install python-software-properties 
add-apt-repository ppa:ondrej/php-7.0 
apt-get install php7.0-fpm
</code>
Copy after login

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

<code>dpkg -i mysql-apt-config_xx_all.deb
apt-get update
apt-get install mysql-server
</code>
Copy after login

Dependent environment:

<code>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
</code>
Copy after login

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.

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!