diff --git a/lemp-rhel7/group_vars/all.yml b/lemp-rhel7/group_vars/all.yml index f6b5291..f6daa54 100644 --- a/lemp-rhel7/group_vars/all.yml +++ b/lemp-rhel7/group_vars/all.yml @@ -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" diff --git a/lemp-rhel7/roles/ansible-role-php/templates/www.conf.j2 b/lemp-rhel7/roles/ansible-role-php/templates/www.conf.j2 index aaab17a..0257545 100755 --- a/lemp-rhel7/roles/ansible-role-php/templates/www.conf.j2 +++ b/lemp-rhel7/roles/ansible-role-php/templates/www.conf.j2 @@ -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 diff --git a/lemp-rhel7/roles/common/tasks/main.yml b/lemp-rhel7/roles/common/tasks/main.yml index 9bc4bd6..d57ae06 100644 --- a/lemp-rhel7/roles/common/tasks/main.yml +++ b/lemp-rhel7/roles/common/tasks/main.yml @@ -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