From a113710096b7d4468245c60eb7390de6f19a6f69 Mon Sep 17 00:00:00 2001 From: MaryahKim Date: Sat, 22 Mar 2025 22:03:18 +0200 Subject: [PATCH 1/3] Add php max-file-size --- php.ini | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 php.ini diff --git a/php.ini b/php.ini new file mode 100644 index 0000000..c17e797 --- /dev/null +++ b/php.ini @@ -0,0 +1,5 @@ +; config/php.ini +upload_max_filesize = 100M +post_max_size = 100M +memory_limit = 512M +max_execution_time = 300 From 03a6db8d797b500c4ef57458c63f4ee3b3344684 Mon Sep 17 00:00:00 2001 From: MaryahKim Date: Tue, 25 Mar 2025 11:25:03 +0200 Subject: [PATCH 2/3] Include php.ini in docker container --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f431e4a..581c07f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,8 @@ FROM wordpress:5.3.2-apache RUN apt-get update && apt-get install -y magic-wormhole +COPY php.ini /usr/local/etc/php/config.d/custom.ini + RUN usermod -s /bin/bash www-data RUN chown www-data:www-data /var/www USER www-data:www-data From e2a7dfb0fb7c99bc2abb8c88de19045bb8dd6efd Mon Sep 17 00:00:00 2001 From: MaryahKim Date: Tue, 25 Mar 2025 11:27:04 +0200 Subject: [PATCH 3/3] Mount php.ini update MYSQL value to wp_db --- render.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/render.yaml b/render.yaml index 2383a5d..a0d2e81 100644 --- a/render.yaml +++ b/render.yaml @@ -2,12 +2,17 @@ services: - type: web name: wordpress env: docker - plan: standard + plan: starter autoDeploy: false disk: name: wordpress mountPath: /var/www/html - sizeGB: 20 + sizeGB: 5 + envVars: + - key: WORDPRESS_CONFIG_EXTRA + value: | + upload_max_filesize = 64M; + post_max_size = 64M; envVars: - key: WORDPRESS_DB_HOST fromService: @@ -33,17 +38,17 @@ services: name: mysql-wordpress repo: https://github.com/render-examples/mysql.git env: docker - plan: standard + plan: starter autoDeploy: false disk: name: mysql-wordpress mountPath: /var/lib/mysql - sizeGB: 20 + sizeGB: 5 envVars: - key: MYSQL_DATABASE - value: mysql + value: wp_db - key: MYSQL_USER - value: mysql + value: wp_user - key: MYSQL_PASSWORD generateValue: true - key: MYSQL_ROOT_PASSWORD