I just installed Flarum on a Raspberry Pi 4 using
- Raspberry Pi OS 64 bit.
- nginx web server.
- php8.2
Some extensions were also installed, particularly fof-upload.
All went well and web connectivity to the forum appears to function as expected. So far, so good!
However, one (extension) issue I have not been able to resolve is this: When I attempt to upload a file larger that 2 MB, I get an error: "Oops! Something went wrong"
I have modified the /etc/nginx/nginx.conf file by adding the line
client_max_body_size 20M;
and reloaded nginx.
nginx -t reports that everything is fine.
For php I have modified the file /etc/php/8.2/cli/php.ini
post_max_size = 16M
upload_max_filesize = 12M
But this does not resolve the issue.
Running php --ini indicates that /etc/php/8.2/cli/php.ini is in operation.
A strange thing is that when i open the administrative page for FoF Upload I observe the text:
Maximum file size (in kilobytes)
12000
Your php.ini values are post_max_size=8M and upload_max_filesize=2M. Ensure the value set here is below these thresholds, or adjust them accordingly. If using Nginx, also ensure that client_max_body_size is of sufficient size for your chosen max limit.
I do not know it this text really reflects the true contents of my php.ini file or not, of is this just is general information. If the FoF Upload administation page points to a working php.ini, where would this be?
A full Raspberry Pi reboot does nothing to resolve the issue either.
Anyone has a clue to to to solve this? A limit of 2MB is way to low to be usable for my purpose...