parent
9aeea4fe77
commit
8a5430336b
@ -0,0 +1,3 @@ |
|||||||
|
--- |
||||||
|
- name: restart php-fpm |
||||||
|
service: name=php-fpm state=restarted |
@ -0,0 +1,35 @@ |
|||||||
|
--- |
||||||
|
- name: Install php-fpm and deps |
||||||
|
yum: name={{ item }} state=present |
||||||
|
with_items: |
||||||
|
- php |
||||||
|
- php-fpm |
||||||
|
- php-enchant |
||||||
|
- php-IDNA_Convert |
||||||
|
- php-mbstring |
||||||
|
- php-mysql |
||||||
|
- php-PHPMailer |
||||||
|
- php-process |
||||||
|
- php-simplepie |
||||||
|
- php-xml |
||||||
|
- php-gd |
||||||
|
- php-mbstring |
||||||
|
- php-opcache |
||||||
|
- php-pdo-dblib |
||||||
|
- php-pecl-apcu |
||||||
|
- php-pecl-memcached |
||||||
|
- php-pecl-uploadprogress |
||||||
|
- php-pecl-uuid |
||||||
|
- php-pspell |
||||||
|
- php-soap |
||||||
|
- php-twig |
||||||
|
- php-twig-ctwig |
||||||
|
- php-xmlrpc |
||||||
|
|
||||||
|
- 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 |
@ -0,0 +1,15 @@ |
|||||||
|
[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