Added php memory_limit note to uploads docs

In relation to bookstackapp/bookstack#2424
This commit is contained in:
Dan Brown 2021-01-02 17:33:02 +00:00
commit 31a761e0b7
Signed by: danb
GPG key ID: 46D9F943C24A2EF9

View file

@ -128,11 +128,17 @@ PHP has two main variables which effect upload limits. Find your `php.ini` file
If the values of these variables are low increase them to something sensible that's not too high to cause issues. Unless you need something higher 10MB is a sensible value to enter for these values:
```
```ini
post_max_size = 10M
upload_max_filesize = 10M
```
If wanting to upload files over 128MB, you may also need to adjust your PHP memory limit like so:
```ini
memory_limit = 256M
```
After updating these values ensure you restart your webserver and also PHP if using PHP-FPM or something similar.
#### NGINX