How to install php-fpm with yum
Yum installation "php-fpm" method: first enter the terminal command window; then install php-fpm through the command "yum install php55w-fpm yum install php56w-fpm".
Recommended: "PHP Video Tutorial"
Install PHP FPM
yum install php55w-fpm yum install php56w-fpm yum install php70w-fpm
Note: If you want to upgrade to 5.6, just replace the above 55w with 56w.
If we want to use yum to install PHP-fpm and newer versions of php, nginx, and MySQL-server, we must first add several sources to yum. The software in the default source of CentOS is relatively old. Some software, The library is not available yet.
EPEL source:
Extra Packages for Enterprise Linux (or EPEL), or Enterprise Edition Linux additional software package, is a special interest group created, maintained and managed for Red Hat Enterprise A high-quality add-on software package project for Linux (RHEL) and its derivative distributions (such as CentOS, Scientific Linux).
EPEL's packages generally do not conflict with packages in the official Enterprise Linux repository, or replace each other's files. EPEL is basically the same as the Fedora project and includes a complete build system, upgrade manager, image manager, etc.
EPEL source official website: https://fedoraproject.org/wiki/EPEL
Add EPEL source:
32-bit CentOS, run the following command on the command line:
rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
64-bit CentOS, in Run the following command on the command line:
rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
The EPEL source can only be used as a supplement to the official CentOS source. It contains some basic system software packages. The software we want to install, such as php, php-fpm, MySQL, etc., is still not included, so we will add another software source Remi. .
The software in the Remi source is almost all the latest stable version. Maybe you wonder if it is stable? Don't worry, these are compiled and put into the source by hardcore Linux players. There is no doubt that they are familiar with the system environment and software compilation parameters.
Remi official website: http://rpms.famillecollet.com/
Add Remi source, regardless of 32-bit or 64-bit system, run the following command:
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Remi source is not enabled by default. Let’s enable Remi source and modify /etc/yum.repos.d /remi.repo file, change enabled=0 in the file to enabled=1. Note: There are 2 enabled=0 in the changed file. We modify the one under [remi], do not modify the one under [remi-test].
The configuration of the yum source ends here, and it is simple to install the software. When I asked y/n during installation, it was always y
Install php, php-fpm and php extensions: yum install php php-fpm php-bcmatch php-gd php-mbstring php-mcrypt php-mysql
Install mysql: yum install mysql-server
OK, everything is done, let’s list all the configuration files involved (the following configuration files have been automatically created by default, we don’t need to create them ourselves):
Mysql configuration file my.cnf path:/etc/my.cnf
Nginx configuration file nginx.conf path:/etc/nginx/nginx.conf
PHP configuration File php.ini path: /etc/php.ini
php-fpm configuration file php-fpm.conf path: /etc/php-fpm.conf
The above is the detailed content of How to install php-fpm with yum. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to use php-fpm for high-performance tuning PHP is a very popular server-side scripting language that is widely used to develop web applications and dynamic websites. However, as traffic increases, the performance of your PHP application may suffer. In order to solve this problem, we can use php-fpm (FastCGIProcessManager) for high-performance tuning. This article will introduce how to use php-fpm to improve the performance of PHP applications and provide code examples. one,

Because C++11 needs to be used, but the gcc4.4.7 that comes with CentOS does not support it, I decided to upgrade gcc. The operation is as follows: #Backup mv/etc/yum.repos.d/devtools-2.repo/etc/yum.repos.d/devtools-2.repo.bakwgethttp://people.centos.org/tru/devtools-2 /devtools-2.repo-O/etc/yum.repos.d/devtools-2.repoyuminstalldevtoolset-2-gccdevtoolse

How to use PHP-FPM optimization to improve the performance of PrestaShop applications. With the rapid development of the e-commerce industry, PrestaShop has become the e-commerce platform chosen by many merchants. However, as the size of the store increases and the number of visits increases, the PrestaShop application may encounter performance bottlenecks. In order to improve the performance of the PrestaShop application, a common method is to use PHP-FPM to optimize and improve the application's processing capabilities. PHP-FPM (FastCGI

How to Improve the Performance of WooCommerce Applications Using PHP-FPM Optimization Overview WooCommerce is a very popular e-commerce plugin for creating and managing online stores on WordPress websites. However, as your store grows and traffic increases, WooCommerce apps can become slow and unstable. To solve this problem, we can use PHP-FPM to optimize and improve the performance of WooCommerce applications. What is PHP-FP

Overview of using php-fpm connection pool to improve database access performance: In web development, database access is one of the most frequent and time-consuming operations. The traditional method is to create a new database connection for each database operation and then close the connection after use. This method will cause frequent establishment and closing of database connections, increasing system overhead. In order to solve this problem, you can use php-fpm connection pool technology to improve database access performance. Principle of connection pool: Connection pool is a caching technology that combines a certain number of databases

1. Download the gitlab installation package. Download the latest Chinese version of the gitlab installation package from [Tsinghua University Open Source Software Mirror Station]. The installation package comes with a simplified Chinese localization package. Download the latest gitlab installation package from [gitlab official website]. 2. Install gitlab, take gitlab-ce-14.9.4-ce.0.el7.x86_64 as an example, upload it to the centos server and use yum to install gitlabyum-yinstallgitlab-ce-14.3.2-ce.0.el7.x86_64. rpm uses yum to install gityum-yinstallgit#Install git and modify the gitlab configuration file vi

How to use PHP-FPM to optimize and improve the performance of Phalcon applications. Introduction: Phalcon is a high-performance PHP framework. Combining with PHP-FPM can further improve the performance of applications. This article will introduce how to use PHP-FPM to optimize the performance of Phalcon applications and provide specific code examples. 1. What is PHP-FPMPHP-FPM (PHPFastCGIProcessManager) is a PHP process independent of the web server

PHP-FPM is a commonly used PHP process manager used to provide better PHP performance and stability. However, in a high-load environment, the default configuration of PHP-FPM may not meet the needs, so we need to tune it. This article will introduce the tuning method of PHP-FPM in detail and give some code examples. 1. Increase the number of processes. By default, PHP-FPM only starts a small number of processes to handle requests. In a high-load environment, we can improve the concurrency of PHP-FPM by increasing the number of processes
