Increasing image size in WordPress

I updated my Ubuntu 24.04 and my WordPress stopped loading images of size 1.3MB and higher.

I fixed this by adding the following:

client_max_body_size 32M;

to Nginx configuration.

My php.ini parameters were the following:

    upload_max_filesize = 32M
    post_max_size = 32M
    memory_limit = 128M
    max_execution_time = 30
    max_input_time = 60

Leave a Reply

Your email address will not be published. Required fields are marked *