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

WBOY
Release: 2016-08-08 09:28:57
Original
1084 people have browsed it

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

First add the www user group and user
groupadd www
useradd www -g www
Copy after login

php-fpm configuration
vi /etc/php-fpm.d/www.conf
Copy after login

Quote

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


Test whether the configuration is successful
php-fpm -t
Copy after login

Start the php-fpm service
service php-fpm start
Copy after login

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.

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