From 7f87d71d49cbd68c400575473d41bc9c39e720c1 Mon Sep 17 00:00:00 2001 From: Dai Date: Thu, 9 Oct 2025 18:52:19 -0700 Subject: [PATCH] Update init --- init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init b/init index 73a5181..adac438 100644 --- a/init +++ b/init @@ -21,11 +21,11 @@ sudo systemctl restart nginx # PHP sudo systemctl enable --now php8.4-fpm -# Change 999G if you want some sort of limit +# Set limit to post size and upload file size sudo sed -i "s/^post_max_size = 8M/post_max_size = $POST_MAX_SIZE/g" /etc/php/8.4/fpm/php.ini sudo sed -i "s/^upload_max_filesize = 2M/upload_max_filesize = $UPLOAD_MAX_FILESIZE/g" /etc/php/8.4/fpm/php.ini -# Change 99 to something lower if you want some sort of limit +# Set max processing children for php sudo sed -i "s/^pm = dynamic/pm = ondemand/g" /etc/php/8.4/fpm/pool.d/www.conf sudo sed -i "s/^pm.max_children = 5/pm.max_children = $PM_MAX_CHILDREN/g" /etc/php/8.4/fpm/pool.d/www.conf