From 2ffc9c1ed102474dcb41124b58751798894a5a36 Mon Sep 17 00:00:00 2001 From: Kada <kadaliao@gmail.com> Date: Mon, 7 Aug 2017 12:04:59 +0800 Subject: [PATCH] add php config file Increase the Maximum File Upload Size in WordPress --- config/php.conf.uploads.ini | 6 ++++++ docker-compose.yml | 1 + 2 files changed, 7 insertions(+) create mode 100644 config/php.conf.uploads.ini diff --git a/config/php.conf.uploads.ini b/config/php.conf.uploads.ini new file mode 100644 index 0000000..2688024 --- /dev/null +++ b/config/php.conf.uploads.ini @@ -0,0 +1,6 @@ +file_uploads = On +memory_limit = 500M +upload_max_filesize = 30M +post_max_size = 30M +max_execution_time = 600 + diff --git a/docker-compose.yml b/docker-compose.yml index da9d0f2..6bb85be 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,7 @@ services: ports: - 127.0.0.1:80:80 # change ip if required volumes: + - ./config/php.conf.uploads.ini:/usr/local/etc/php/conf.d/uploads.ini - ./wp-app:/var/www/html # Full wordpress project #- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development #- ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name # Theme development -- GitLab