How to Increase WordPress File Upload Limit in Moss.sh
We have divided the tutorial into 2 parts.
Here is a quick guide explaining on how to increase the default file upload limit (10MB) in WordPress sites which are installed via Moss.sh service.
1# Log into your server as user moss
cd /etc/openresty/ and then press Return. Now you will be presented with files listed in the DIR. You will be able to see a file name mentioned server_params.username
Replace inspirefusion with your username. You should be able to see something like below:
Replace inspirefusion with your username. Then you’ll be prompted for more input. Copy & paste below text if you want to increase your file upload limit to 25MB:
# Extra nginx params to be included in this site managed by Moss
# all directives below will be included within 'server' blocks
# common configs that you might want to fine-tune are given
# Core module
# Gzip module
6# Check if the config file is as it should be:
Replace inspirefusion with your username.
1# sudo su
2# cat <<EOF >> /etc/php/7.2/fpm/conf.d/99-extra.ini
You will be prompted for more input:
upload_max_filesize = 25M
post_max_size = 25M
4# Verify changes:
5# Goto your moss.sh account and visit the sites section and select the site for which you just mades the above changes. Click “reprovision”