PHP config fix
This commit is contained in:
parent
314c2a1527
commit
f492d6af84
@ -2,26 +2,26 @@
|
|||||||
- name: PHP ini setup
|
- name: PHP ini setup
|
||||||
copy:
|
copy:
|
||||||
src: files/php{{ php_version }}.ini
|
src: files/php{{ php_version }}.ini
|
||||||
dest: /etc/php/{{ php_version }}/cli/php.ini
|
dest: /etc/php/{{ php_version }}/fpm/php.ini
|
||||||
|
|
||||||
- name: Increase PHP memory limit
|
- name: Increase PHP memory limit
|
||||||
become: true
|
become: true
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/php/{{ php_version }}/cli/php.ini
|
dest: /etc/php/{{ php_version }}/fpm/php.ini
|
||||||
regexp: "memory_limit ="
|
regexp: "memory_limit ="
|
||||||
line: "memory_limit = 512M"
|
line: "memory_limit = 512M"
|
||||||
|
|
||||||
- name: Increase PHP upload time
|
- name: Increase PHP upload time
|
||||||
become: true
|
become: true
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/php/{{ php_version }}/cli/php.ini
|
dest: /etc/php/{{ php_version }}/fpm/php.ini
|
||||||
regexp: "max_input_time ="
|
regexp: "max_input_time ="
|
||||||
line: "max_input_time = 120"
|
line: "max_input_time = 120"
|
||||||
|
|
||||||
- name: Increase PHP post size
|
- name: Increase PHP post size
|
||||||
become: true
|
become: true
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/php/{{ php_version }}/cli/php.ini
|
dest: /etc/php/{{ php_version }}/fpm/php.ini
|
||||||
regexp: "post_max_size ="
|
regexp: "post_max_size ="
|
||||||
line: "post_max_size = 20M"
|
line: "post_max_size = 20M"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user