From 67373adcafeac1f7924ef5c0f535b8c92a920d6b Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 6 Feb 2020 03:17:15 -0600 Subject: [PATCH] Add php configs, also add an unused mysql config --- roles/nextcloud/files/my.cnf | 30 +++++++++++++++++++++++++++ roles/nextcloud/files/php-apache2.ini | 2 +- roles/nextcloud/files/php-cgi.ini | 2 +- roles/nextcloud/tasks/main.yml | 2 +- 4 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 roles/nextcloud/files/my.cnf diff --git a/roles/nextcloud/files/my.cnf b/roles/nextcloud/files/my.cnf new file mode 100644 index 0000000..9ac6712 --- /dev/null +++ b/roles/nextcloud/files/my.cnf @@ -0,0 +1,30 @@ +# The MariaDB configuration file +# +# The MariaDB/MySQL tools read configuration files in the following order: +# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults, +# 2. "/etc/mysql/conf.d/*.cnf" to set global options. +# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options. +# 4. "~/.my.cnf" to set user-specific options. +# +# If the same option is defined multiple times, the last one will apply. +# +# One can use all long options that the program supports. +# Run program with --help to get a list of available options and with +# --print-defaults to see which it would actually understand and use. + +[mysqld] +max_allowed_packet=100M +skip-networking +innodb_file_format = Barracuda +innodb_large_prefix = 1 +innodb_file_per_table = ON + +# +# This group is read both both by the client and the server +# use it for options that affect everything +# +[client-server] + +# Import all .cnf files from configuration directory +!includedir /etc/mysql/conf.d/ +!includedir /etc/mysql/mariadb.conf.d/ diff --git a/roles/nextcloud/files/php-apache2.ini b/roles/nextcloud/files/php-apache2.ini index eeb0c89..164753b 100644 --- a/roles/nextcloud/files/php-apache2.ini +++ b/roles/nextcloud/files/php-apache2.ini @@ -398,7 +398,7 @@ max_input_time = 60 ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit -memory_limit = 128M +memory_limit = 512M ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; diff --git a/roles/nextcloud/files/php-cgi.ini b/roles/nextcloud/files/php-cgi.ini index eeb0c89..164753b 100644 --- a/roles/nextcloud/files/php-cgi.ini +++ b/roles/nextcloud/files/php-cgi.ini @@ -398,7 +398,7 @@ max_input_time = 60 ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit -memory_limit = 128M +memory_limit = 512M ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 45c9389..74ed096 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -47,7 +47,7 @@ name: nextcloud host: localhost password: "{{ nextcloud_mysql_password }}" - priv: "nextclouddb.*:ALL,GRANT" + priv: "nextcloud.*:ALL,GRANT" login_user: root login_password: "{{ mysql_root_password }}" - name: Set up Apache