Home  >  Article  >  Backend Development  >  How to install PHP environment with yum?

How to install PHP environment with yum?

Guanhui
GuanhuiOriginal
2020-06-24 11:32:433600browse

How to install PHP environment with yum?

How to install PHP environment with yum?

First use the "yum install" command to install "php php-fpm php-mysql nginx";

yum install php php-fpm php-mysql nginx -y

Then configure the "www.conf" configuration file of "php-fpm" ;

vi /etc/php-fpm.d/www.conf

How to install PHP environment with yum?

Finally start "php-fpm" and "nginx".

systemctl start php-fpm
systemctl start nginx

Recommended tutorials: "PHP Tutorial" "Linux"

The above is the detailed content of How to install PHP environment with yum?. 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