Add php configuration for apache and cli globaly
gitea/ansible-roles/pipeline/head This commit looks good Details

This commit is contained in:
Eric Morino 2022-08-26 16:28:30 +02:00
parent f1485451ef
commit aee925d667
4 changed files with 48 additions and 10 deletions

View File

@ -0,0 +1,20 @@
; Put customized values here.
allow_url_fopen = On
disable_functions = exec,shell-exec,system,passthru,popen
disable_functions =
user_ini.filename = ".user.ini"
max_execution_time = 300
memory_limit = 512M
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=24
opcache.max_accelerated_files=60000
opcache.memory_consumption=512
opcache.save_comments=1
opcache.revalidate_freq=1
upload_max_filesize = 2G
post_max_size = 2G

View File

@ -0,0 +1,4 @@
; Put customized values here.
; default_charset = "ISO-8859-1"
allow_url_fopen = On
apc.enable_cli=1

View File

@ -17,6 +17,30 @@
notify: reload apache
tags:
- nextcloud
- name: Enable apache2 php configuration
copy:
src: "zzz-apache2-evolinux-custom.ini"
dest: "/etc/php/7.4/apache2/conf.d/zzz-evolinux-custom.ini"
mode: "0644"
owner: root
group: root
force: yes
notify: reload apache
tags:
- nextcloud
- name: Enable cli php configuration
copy:
src: "zzz-cli-evolinux-custom.ini"
dest: "/etc/php/7.4/cli/conf.d/zzz-evolinux-custom.ini"
mode: "0644"
owner: root
group: root
force: yes
notify: reload apache
tags:
- nextcloud
# - name: Generate ssl config
# shell:

View File

@ -28,16 +28,6 @@
RewriteRule ^/(.*) http://%{SERVER_NAME}/$1 [L,R]
# PHP
#php_admin_flag engine off
#AddType text/html .html
#php_admin_flag display_errors On
#php_flag short_open_tag On
#php_flag register_globals On
#php_admin_value memory_limit 256M
#php_admin_value max_execution_time 60
#php_admin_value upload_max_filesize 8M
#php_admin_flag allow_url_fopen Off
#php_value default_charset ISO-8859-15
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f {{ nextcloud_instance_name }}"
php_admin_value open_basedir "/usr/share/php:/home/{{ nextcloud_instance_name }}:/tmp"