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

王林
Release: 2020-11-10 10:31:56
Original
2130 people have browsed it

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
Copy after login

Install php php-fpm

yum -y install php php-fpm
Copy after login

Check the php version

php -v
Copy after login

Install php-mysql

yum install php-mysql
Copy after login

Set php-fpm Start automatically at boot

systemctl enable php-fpm
Copy after login

Start php-fpm

systemctl start php-fpm
Copy after login

Restart httpd service

systemctl restart httpd.service
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template