Updated to www-php user for php-fpm, nginx web root.

This commit is contained in:
Ivan Grynenko 2016-06-12 14:23:33 +10:00
parent bbf6f2faa8
commit b333a90cd6
3 changed files with 5 additions and 4 deletions

View file

@ -59,8 +59,8 @@ php_enablerepo: "remi-php70"
# PHP-FPM configuration.
php_enable_php_fpm: true
php_fpm_pool_user: vmuser
php_fpm_pool_group: nginx
php_fpm_pool_user: www-php
php_fpm_pool_group: www-php
php_apc_shm_size: "128M"

View file

@ -1,8 +1,8 @@
[www]
listen = 127.0.0.1:9000
listen.allowed_clients = 127.0.0.1
user = {{ php_fpm_pool_user }}
group = {{ php_fpm_pool_group }}
user = www-php
group = www-php
pm = dynamic
pm.max_children = 50

View file

@ -13,3 +13,4 @@
- name: Creates vmuser user
user: name=vmuser comment=DefaultUser groups=vmuser,wheel password={{ default_user_password }} shell=/bin/bash createhome=yes
user: name=www-php comment=DefaultPHPUser groups=www-php shell=/sbin/nologin createhome=no