Home  >  Article  >  Backend Development  >  LNMP (linux+nginx+mysql+php) server environment configuration (2) PHP installation

LNMP (linux+nginx+mysql+php) server environment configuration (2) PHP installation

WBOY
WBOYOriginal
2016-08-08 09:28:571085browse

There are many things to install in php: please choose to install according to your own needs

yum install php php-common php-devel php-eaccelerator php-fpm php-gd php-mysql php-pdo php-mbstring php-mcrypt php-xml php-pecl-memcached

First add the www user group and user
groupadd www
useradd www -g www

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

Quote

user = www
group = www
php_flag[display_errors] = on


Test whether the configuration is successful
php-fpm -t

Start the php-fpm service
service php-fpm start

The above introduces the LNMP (linux+nginx+mysql+php) server environment configuration (2) PHP installation, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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