php.ini how to set post max size?
-
Hi,
did anyone manage to set post max size and/or upload max size etc. in the php.ini?
I did this via the file browser in Cloudron like this:
; Add custom PHP configuration in this file
; Settings here are merged with the package's built-in php.ini
post_max_size = 100000M
upload_max_size = 100000M
upload_max_filesize = 100000MBut i still get the upload error "php post max size limit is too small".
I'm probably editing the wrong php.ini ? I'm editing the one that i see in the file browser in cloudron in the lychee settings /lychee/php.ini
Thanks in advance i will appreciate any help
-
-
updated, restartet the app, set php.ini as in my previous comment, uploaded a 1GB .mp4 file and got an "unknown error from server".
Here's the log:
2021-10-21 10:32:54 -- notice -- App\Metadata\Extractor::extract -- 126 -- Falling back to native adapter.
2021-10-21 10:32:54 -- error -- App\Metadata\Extractor::extract -- 121 -- Unable to probe /app/code/public/uploads/big/cb19f836c2830ff88ff45694565da65b.mp4
2021-10-21 10:30:13 -- notice -- App\Metadata\Extractor::extract -- 126 -- Falling back to native adapter. -
@teamcrw Do you think you can try with a new install? Maybe there is some update issue, I can check after you can verify the below.
This is what I did
- Installed a new package
- Setup user and checked the Diag view.
- Then, I go to File Manager and edit the
/app/data/php.ini
like below:
; Add custom PHP configuration in this file ; Settings here are merged with the package's built-in php.ini post_max_size = 100000M upload_max_size = 100000M upload_max_filesize = 100000M
-
Restart the app
-
Check the diag view again:
-
First, thank you for your time and for helping me out.
So, i did a fresh install of lychee, and did exactly the same as you.
In Diag View it shows the same as yours, see:But i still get this error:
UPDATE: I also tried different browsers. Same error.
-
@teamcrw I think the issue is not related the php settings. When the settings are low, it says so in the UI like below:
I am wondering if the issue is
max_execution_time
per https://lycheeorg.github.io/docs/faq.html#i-cant-upload-large-photos . The default value is set to 200, so that's under 3 minutes (can set it to 0 also to disable). Can you set it to much larger value and try? How long does your upload of 1GB take?You can also set
APP_DEBUG=true
in the env file and then restart the app. Check for errors in the browser and alsoShow Logs
in the lychee UI after upload fails.