In many cases you allow your users to upload content through your application. In this article you'll see how to set the maximum upload size to the value that fits your needs.
In this example we'll increase the limit up to 20 MB (from the default 10 MB limit) for a site with domain
site.com . But first, take a quick look to the basics about fine-tuning your applications with Moss if you haven't done it yet.
For the sake of simplicity, in the remainder of this article we provide examples for PHP 7.0. However everything stated here applies to all supported PHP versions. Just substitute
7.0 for the PHP version you're actually tweaking.
- Log into your Ubuntu server as user
sudoand your favorite text editor, create file
/etc/php/7.0/fpm/conf.d/99-extra.ini(or a similar one) with the following content:
upload_max_filesize = 20M
post_max_size = 20M
- Log into your server as user
sudoand your favorite text editor, add the following line to file
Provision your website
- Log into Moss
- Head to the details of
- Click the 'Provision' button and wait until Moss finishes the process