PHP Upload size

Well,
I’m facing the exact problem.
“The server does not allow uploads of this size. Please try a smaller file size.”

My PHP.INI is set to
memory_limit = 512M
max_execution_time = 300
max_input_time = 300
upload_max_filesize = 256M
post_max_size = 256M

My file is 56Mb, so well inside the 256M upload.
The error message is instantaneous though, it’s not like it’s even trying to upload.
Nginx has no limit either.

What’s the full path of the php.ini file that you are modifying?

It’s a container. I have a mounted volume with the config files.
It’s /home/[username]/wiki/config/php/php-local.ini which is supposed to override php.ini directives

If I get into the container, I also modified the php.ini file there, in /etc/php83/php.ini

same info everywhere, but still no way to upload

NB1 What is surprising, is that I was able to upload a 88.4 Mb file without problems.
I’ll check my 56Mb file to see whether it’s corrupt or not.

NB2 I checked with other files, it doesn’t work either. I don’t know how that 88.4Mb file was able to upload…

Steve

I know nothing about containers so I can’t help here.

Just in case it is useful, by default, php will try to load this file .user.ini as the php ini user profile.

ok will check for this file.
What is surprising is I have a totally similar config for Nextcloud and I’m able to upload 4Gb files without problems.

The only difference between the day I was able to upload 88Mb and now is that my server has been upgraded tfrom Ubuntu 22 to 24. That may be the cause. HestiaCP is not fully Ubuntu 24 certified yet… but it doesn’t affect Nextcloud though… Strange.
I’ll post back if I find a cause and a fix.
Thanks

1 Like

Hestia doesn’t run in containers you should the ask the developers for support …

1 Like