parent
0d99f1ee04
commit
695801d26d
@ -1,3 +0,0 @@ |
||||
--- |
||||
- name: restart php-fpm |
||||
service: name=php-fpm state=restarted |
@ -1,22 +0,0 @@ |
||||
--- |
||||
- name: Install php-fpm and deps |
||||
yum: name={{ item }} state=present |
||||
with_items: |
||||
- php |
||||
- php-enchant |
||||
- php-IDNA_Convert |
||||
- php-mbstring |
||||
- php-mysql |
||||
- php-PHPMailer |
||||
- php-xml |
||||
- php-gd |
||||
- php-pecl-uploadprogress |
||||
- php-pecl-opcache |
||||
|
||||
- name: Disable default pool |
||||
command: mv /etc/php-fpm.d/www.conf /etc/php-fpm.d/www.disabled creates=/etc/php-fpm.d/www.disabled |
||||
notify: restart php-fpm |
||||
|
||||
- name: Copy php-fpm configuration |
||||
template: src=wordpress.conf dest=/etc/php-fpm.d/ |
||||
notify: restart php-fpm |
@ -1,15 +0,0 @@ |
||||
[wordpress] |
||||
listen = /var/run/php-fpm/wordpress.sock |
||||
listen.owner = nginx |
||||
listen.group = nginx |
||||
listen.mode = 0660 |
||||
user = wordpress |
||||
group = wordpress |
||||
pm = dynamic |
||||
pm.max_children = 10 |
||||
pm.start_servers = 1 |
||||
pm.min_spare_servers = 1 |
||||
pm.max_spare_servers = 3 |
||||
pm.max_requests = 500 |
||||
chdir = /srv/wordpress/ |
||||
php_admin_value[open_basedir] = /srv/wordpress/:/tmp |
Reference in new issue