Abstract: For the need to implement on the same Linux server, while running several different versions of the PHP program, this article we will use the fastcgi way to load, and the process of detailed record down for easy reference.There are a
I. BASIC information
System (L): CentOS 6.9 #:http://mirrors.sohu.com
Web server (N): NGINX 1.14.0 #:http://nginx.org/en/download.html
Database Server (M): MySQL 5.6.40 #:https://dev.mysql.com/downloads/mysql
PHP-FPM Server (P):
From PHP 5.3.3, you can use PHP-FPM directly, no longer need to patch. Previously written "Linux from source code compiled installation PHP 5" See http://www.linuxidc.com/Linux/2011-10/45743.htm, but in the mod_php module, rather than FastCGI mode
This article source: https://wangyan.org/blog/install-php-fpm-from-source.html
From PHP 5.3.3, you can directly use PHP-FPM, no longer need to patch. Previously had written "Linux compiled from the source code to install PHP 5", but in the mod_php
I. Installation of Nginx
Be careful not to forget to install Pcre
Two. Install PHP
1, download the PHP source code package
http://www.php.net/downloads.php
2. Install PHP
TAR-XVF php-5.5.13.tar.bz2
CD
Compile and install PHP 5.3.3
Since php5.3.x has brought php-fpm, it doesn't need to be patched.
# sudo./configure--prefix=/usr/local/php-5.3.3--with-mcrypt--with-gettext--with-mysql--with-gd--with-jpeg-dir--
4 Common Ways to run PHP: CGI, FastCGI, Apache2handler, CLI.
1. CGI
CGI is the Universal Gateway Interface (Common Gatewag interface), it is a program, popular speaking CGI is like a bridge, the Web page and the Internet server to connect the
First recommend an article PHP 7 release Date Arrived:will developers adopt PHP 7? -PHP Classes Blog.
Inside said whether will go to use PHP7, personally, I do not hesitate to use, but the production environment is not my decision, so can only own
The new features given by the authorities are as follows:
PHP 7.0.0 comes with new version of the Zend Engine with features such as (incomplete list):Improved performance:php 7 is up to twice as fast as PHP 5.6Consistent 64-bit SupportMany fatal
This article describes the Linux platform compiler installation PHP7 and installation of Redis extension and swoole extension methods. Share to everyone for your reference, specific as follows:
The previous PHP7 installation Redis extended Tutorial
1. Installation of Nginx Yum1) Add Nginx to Yum sourceAdd the CentOS 7 Nginx Yum Repository, open the terminal and use the following command:sudo rpm-uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm2)
The experiment uses four virtual machines to build, originally the database as the core of the site, can not be placed on the DNS server, here due to the limit of the number of virtual machines, can only be temporarily placed on the DNS server to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.