Add php configuration for apache and cli globaly
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
f1485451ef
commit
aee925d667
20
webapps/nextcloud/files/zzz-apache2-evolinux-custom.ini
Normal file
20
webapps/nextcloud/files/zzz-apache2-evolinux-custom.ini
Normal 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
|
4
webapps/nextcloud/files/zzz-cli-evolinux-custom.ini
Normal file
4
webapps/nextcloud/files/zzz-cli-evolinux-custom.ini
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
; Put customized values here.
|
||||||
|
; default_charset = "ISO-8859-1"
|
||||||
|
allow_url_fopen = On
|
||||||
|
apc.enable_cli=1
|
|
@ -17,6 +17,30 @@
|
||||||
notify: reload apache
|
notify: reload apache
|
||||||
tags:
|
tags:
|
||||||
- nextcloud
|
- 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
|
# - name: Generate ssl config
|
||||||
# shell:
|
# shell:
|
||||||
|
|
|
@ -28,16 +28,6 @@
|
||||||
RewriteRule ^/(.*) http://%{SERVER_NAME}/$1 [L,R]
|
RewriteRule ^/(.*) http://%{SERVER_NAME}/$1 [L,R]
|
||||||
|
|
||||||
# PHP
|
# 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 sendmail_path "/usr/sbin/sendmail -t -i -f {{ nextcloud_instance_name }}"
|
||||||
php_admin_value open_basedir "/usr/share/php:/home/{{ nextcloud_instance_name }}:/tmp"
|
php_admin_value open_basedir "/usr/share/php:/home/{{ nextcloud_instance_name }}:/tmp"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue