Home >Operation and Maintenance >CentOS >What is the correct way to install php-fpm on centos

What is the correct way to install php-fpm on centos

王林
王林Original
2020-11-10 10:31:562194browse

The correct way to install php-fpm on centos is: 1. Install epel; 2. Execute the [yum -y install php-fpm] command to install php-fpm; 3. Execute the [systemctl restart httpd.service] command Restart the httpd service.

What is the correct way to install php-fpm on centos

How to install php and php-fpm

(Learning video recommendation: java video tutorial)

First install epel

yum -y install epel-release

Install php php-fpm

yum -y install php php-fpm

Check the php version

php -v

Install php-mysql

yum install php-mysql

Set php-fpm Start automatically at boot

systemctl enable php-fpm

Start php-fpm

systemctl start php-fpm

Restart httpd service

systemctl restart httpd.service

Related recommendations:php training

The above is the detailed content of What is the correct way to install php-fpm on centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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