1 minute perfect installation of the latest CentOS + Nginx + PHP-FPM + MySQL. PHP5.3.1MySQL5.0.89Nginx0.8.33 or 0.7.65 (optional) now, we can quickly and fully automated get CentOS + Nginx + PHP-FPM + MySQL installed this comparable to what circulated on the Internet one click
PHP 5.3.1
MySQL 5.0.89
Nginx 0.8.33 or 0.7.65 (optional)
Now, we can do this quickly and automatically.CentOS + Nginx + PHP-
Root permission of the server
Step 1-install Nginx and PHP7-FPM in CentOS 7
Before starting to install Nginx and php7-fpm, we also learn to add the Repository source for the EPEL package first. Run the following command:
yum -y install epel-release
Install Nginx from the EPEL repository:
yum -y install nginx
Then we also need to add another repository for the php7-fp
The last time I introduced PHP in a modular way to work with Apache, this time to introduce PHP in an FPM way to combine Apache work process! Compile and install lamp, using the operating system for CentOS 6, IP address: 192.168.1.101;HTTPd and MARIADB, and XCache for PHP accelerated compilation process has not changed, as the last introduction of the process, there is no more introduction!Note: Do not know the compilation process of friends, please s
learned to add the warehouse source of the EPEL package first. Use the following command:
Yum-y Install Epel-release
Now start installing Nginx from the EPEL warehouse:
Yum-y Install Nginx
Then we also need to add another repository for PHP7-FPM. There is a remote repository in the Internet that provides PHP 7 series packages, which I use in webtatic.
Add PHP7-FPM webtatic Warehouse:
, used to manage the fastcgi process.Right. The management object of PHP-FPM is php-cgi. But it cannot be said that PHP-FPM is the manager of the fastcgi process, because the fastcgi is a protocol, it seems that no such process exists, even if there is php-fpm can not manage him (at least for now).Some say that php-fpm
PHP 5.3.1
MySQL 5.0.89
Nginx 0.8.33 or 0.7.65 (optional)
Now we can quickly automate the installation of CentOS + Nginx + php-fpm + MySQL
This is much better than the online one-button installation package, highly recommended for all novices and pros
My server on the full use of the source code compiled installation, but also not good where to go, but also laborious
I'm finished with some of the usual extensions for PHP, Pdo,eaccelerator,memcache,tid
This article mainly describes how to configure PHP-FPM, common error resolution and PHP-FPM startup, shutdown, and restart.
The Nginx in the LNMP environment does not support PHP and requires the FASTCGI plug-in to process requests for PHP. and PHP needs to php-fpm This component to provide this functionality. Prior to php5.3.3 version php-
Rpm-qplxxxxxx.rpm1. installation of the rpm package rmp package can be done using the program rpm. Run the following command rpm-iyour-package.rpm where the your-package.rpm is the file name of the rpm package you want to install, typically placed under the current directory
Tags: system end system base command line x86 SQL string Targe WordWe want to use Yum to install PHP-FPM and compare the new version of Php,nginx,mysql-server, first we have to add a few sources for Yum, the CentOS default source inside the software is older, some software, libraries have not. Epel Source: Extra Packages for Enterprise Linux (or EPEL) or a corporate Linux add-on is a special interest group created, maintained, and managed for Red Hat
First, the pool of PHP-FPM
The PHP-FPM configuration file php-fpm.conf can be set to multiple pool, where one pool resource is exhausted, causing other sites to be unable to access resources, reporting a 502 error. It is necessary to separate the sites, using separate pool respectively.
1. Modify the configuration filepear.conf php-fpm.conf php-fpm.conf.default php.ini[[emailprotected] etc]
The pool of PHP-FPMPHP-FPM configuration file php-fpm.conf can set multiple pool, in which one pool resource is exhausted, will cause other sites to not access resources, reported 502 error. It is necessary to separate the sites, using separate pool respectively.1. Modify the configuration filepear.conf php-fpm.conf php-fpm.conf.default php.ini[[emailprotected] etc]# vim php-fpm.confinclude = etc/php-fpm.d/*.conf[global]#定义全局参数pid = /usr/local/php-
1. PrefaceThe previous article described how to compile and install MySQL, although it can be installed through Yum install or RPM, but the Yum install and RPM installation has one feature, that is, some parameters are customized according to the needs of the public, if you need to specify their own specific parameters, This is difficult to do, so a certain Linux based people are compiled installation or ac
Tag: Compile and install PHP-FPM lamp XCacheConfiguring the httpd-2.4.23 php-5.5.38 in FPM modeFirst, the installation of Apache and MySQL is the same as the previous part; Please install it according to it;Refer to compiling and installing lamp http://ljohn.blog.51cto.com/11932290/1863283Second, compile and install php-5.5.381, to resolve the dependency relationship:After configuring the Yum source (which
[TOC]PHP-FPM configuration related one, PHP-FPM configuration
Unlike lamp, in the LNMP architecture, PHP-FPM as a standalone service exists, and since it is a standalone service, it must have its own configuration file. The PHP-FPM configuration file is/usr/local/php-fpm
modules.Here, brother even PHP training will outline the following installation steps for you.Step 1: Install the Epel warehouseStep 2: Install the Ndeploy RPM Warehouse, which is the most important step in this installation.Step 3: Install the Ndeploy and Nginx plugins from the Ndeploy warehouse using Yum.Step 4: Enable/configure Nginx as the reverse proxy.After you complete these steps, install the PHP-FPM
PHP 5.3.1MySQL5.0.89Nginx0.8.33 or 0.7.65(optional) Now we can quickly automate the CentOS+ Nginx + php-fpm +MySQLinstalled this can be more than the online spread of what a key installation package is much better, highly recommended this method of installation, suitable for all rookie and master of my server on the full use of the source code compiled installation, it is not good to go, but also a lot of effort I have already included some common ext
use http://mirrors.163.com/.help/CentOS-Base-163.repo (NetEase, also good)
Enable EPEL repo
CentOS i386 input the following command
Rpm-ihv http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Run the following command in CentOS x86_64:
Rpm-ihv http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
Then import the key
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.