Update init
This commit is contained in:
4
init
4
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user