- Newest
- Most votes
- Most comments
Hi,
Upload file size is the setting on the PHP level and depending on the implementation this settings can be passed differently:
- Apache + mod_php
- Apache + php-fpm
- Nginx + php-fpm
- something else
To adjust the upload file size you need set:
post_max_size = 200M
upload_max_filesize = 200M
You can do it for p1, p2 in your site root by adding to .htaccess (it must be allowed to override settings in your Apache config)
php_value post_max_size 200M
php_value upload_max_filesize 200M
You can do it for php-fpm (p2, p3) by editing your pool conf (e.g. /etc/php/8.2/pool.d/default.conf
) and adding end of the file:
php_value[post_max_size] = 200M
php_value[upload_max_filesize] = 200M
I believe there are more ways to pass required variables, make sense to search for post_max_size
and upload_max_filesize
trough /etc/
and /your/website/root
where now 80M set and adjust there, because 80M is not a default value.
Hello Dmytro,
I verified in terminal parameters that I've updated. It shows: post_max_size => 470M => 470M upload_max_filesize => 500M => 500M
Yet, when I try to important my Zipped site file (which is 460MB) but it WP says "Choose a file from your computer: (Maximum size: 80 MB)".
Could you please help me further?
Relevant content
- asked 3 months ago
- asked 8 months ago
- asked 2 years ago
- asked 2 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 3 months ago
Can you update the question with the names of the file(s) that you edited in nano, and what changes were made?