herd-community
herd-community copied to clipboard
[Bug]: PHP's upload_max_filesize doesn't affect Nginx' client_max_body_size
Platform
macOS
Operating system version
macOS Sonoma 14.4.1
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.6.0 (24)
PHP Version
No response
Bug description
I need to import sql via phpmyadmin. The file is 250MB. I changed Max File Upload Size
to 512 in the PHP tab. I also went to php.ini
and made sure both post_max_size
and upload_max_filesize
are set to 512M
.
These don't help me tho, because I'm getting 413 Request Entity Too Large
nginx/1.25.4
.
Now I cannot go to vi /etc/nginx/nginx.conf
to modify the client_max_body_size
because the file doesn't exist.
Where can I change this setting?
Steps to reproduce
Try to upload 250MB file.
Relevant log output
Nginx logs is empty.