Skip to content

Commit

Permalink
fix: 修复配置文件路径错误
Browse files Browse the repository at this point in the history
  • Loading branch information
daixijun committed Aug 28, 2019
1 parent c0d9951 commit e647654
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e647654

Please sign in to comment.