PHP-FPM stands for PHP FastCGI Process Manager, which is a program that runs PHP scripts as FastCGI processes. The advantage of using PHP-FPM is that it runs faster and is more secure and reliable. As a FastCGI process, it can be restarted at any time, thus avoiding impact on the system.
PHP-FPM has been incorporated into the kernel of PHP 5.3.3 version, and starting from PHP 5.3.3 version, PHP FastCGI process manager has become the best choice for PHP applications and is used by a large number of Web developers used by personnel.
It is very simple to install PHP-FPM using yum. You only need to follow the following steps to complete the installation.
Before installing PHP-FPM, please make sure that all software packages have been updated on your system. By updating your system, your computer receives the latest security patches and other feature upgrades.
Run the following command to upgrade your CentOS system:
sudo yum update
After updating your system, You can officially start installing PHP-FPM. Use the following command to install PHP-FPM:
sudo yum install php-fpm
After running the above command, yum will automatically download and install the php-fpm package. During the installation process, you will need to enter 'y' when prompted to confirm the installation.
After installing PHP-FPM, the PHP-FPM service is disabled by default. In order to enable it in the service For it, you need to execute the following command:
sudo systemctl enable php-fpm.service
This will add the PHP-FPM service to the system service list, allowing PHP-FPM to start automatically after the system restarts.
To start the PHP-FPM service, you can run the following command:
sudo systemctl start php-fpm.service
You have successfully installed and started PHP-FPM, and now you can start using PHP-FPM to accelerate your Web application.
The above is the detailed content of How to use yum to install php-fpm on linux. For more information, please follow other related articles on the PHP Chinese website!