AWS Lightsail - Wordpress upload is too small

0

Hello, I'm very new to AWS Lightsail. I used to use Namecheap and now I'm learning from scratch here. My AWS Lightsail is connected to wordpress, but wordpress is empty. I have my zip file with my files (from my site), and I need to upload it to wordpress. When I lick on Media, upload, the limit is 80mb but my files are much much heavier than that. I used SSH and nano to increase upload size but it doesn't work still. It still says max 80mb on wordpress. I don't want to use Filezilla. I want to do direct upload to wordpress.

Couldn you please help me to understand what's the issue with the upload size in wordpress? What should I do?

Thank you so much.

Angel

  • Can you update the question with the names of the file(s) that you edited in nano, and what changes were made?

gefragt vor 6 Monaten243 Aufrufe
2 Antworten
2

Hi,

Upload file size is the setting on the PHP level and depending on the implementation this settings can be passed differently:

  1. Apache + mod_php
  2. Apache + php-fpm
  3. Nginx + php-fpm
  4. 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.

profile picture
EXPERTE
beantwortet vor 6 Monaten
0

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?

beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen