PHP config fix

This commit is contained in:
David Petric 2023-03-30 11:50:53 +02:00
parent 314c2a1527
commit f492d6af84

View File

@ -2,26 +2,26 @@
- name: PHP ini setup
copy:
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
become: true
lineinfile:
dest: /etc/php/{{ php_version }}/cli/php.ini
dest: /etc/php/{{ php_version }}/fpm/php.ini
regexp: "memory_limit ="
line: "memory_limit = 512M"
- name: Increase PHP upload time
become: true
lineinfile:
dest: /etc/php/{{ php_version }}/cli/php.ini
dest: /etc/php/{{ php_version }}/fpm/php.ini
regexp: "max_input_time ="
line: "max_input_time = 120"
- name: Increase PHP post size
become: true
lineinfile:
dest: /etc/php/{{ php_version }}/cli/php.ini
dest: /etc/php/{{ php_version }}/fpm/php.ini
regexp: "post_max_size ="
line: "post_max_size = 20M"