From 978041b55768559355621af315ce91d82543d6ee Mon Sep 17 00:00:00 2001 From: Nadav Kavalerchik Date: Thu, 9 Apr 2020 12:10:21 +0300 Subject: [PATCH] Add php.ini modification instructions Trying to upload a large course backup into the Moodle docker instance, I was limited by php.ini max upload settings. So I propose adding some instructions about updating php.ini within the running docker --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 1574a84..75f2dfb 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,12 @@ To faciliate testing and easy setup the following directories are created and ow * `/var/www/behatdata` * `/var/www/behatfaildumps` +# Modify php.ini + +docker container ls (to get webserver container name) +docker container exec -it moodle-docker_webserver_1 bash +sed -i "s/upload_max_filesize = .*/upload_max_filesize = 100M/" /usr/local/etc/php/php.ini +sed -i "s/post_max_size = .*/post_max_size = 100M/" /usr/local/etc/php/php.ini # See also This container is part of a set of containers for Moodle development, see also: