diff --git a/defaults/main.yml b/defaults/main.yml index b266537..b2e9395 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -95,9 +95,9 @@ php_build_parameters: | --enable-ftp \ --enable-soap \ --with-openssl \ - --with-fpm-user=nginx \ - --with-fpm-group=nginx \ + --with-fpm-user={{ php_web_user }} \ + --with-fpm-group={{ php_web_user }} \ --with-config-file-scan-dir=/usr/local/php-{{ php_version }}/etc/php.d \ - --with-config-file-path=/usr/local/php-{{ php_version }}/etc/php.ini && \ + --with-config-file-path=/usr/local/php-{{ php_version }}/etc && \ make && \ make install diff --git a/tasks/main.yml b/tasks/main.yml index 4bf3ec4..5368a04 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -91,10 +91,11 @@ state: directory owner: "{{ php_web_user }}" group: "{{ php_web_user }}" + mode: '755' loop: - "{{ php_log_path }}" - "{{ php_fpm_pid | dirname }}" - - "/usr/local/php/etc/php.d" + - "/usr/local/php-{{ php_version }}/etc/php.d" - name: Copy php-fpm configuration files template: