Skip to main content

Other things to consider

Some files that are uploaded, video for example, can be up to 200 mb, by default most web servers have configured a much smaller limit. You will need to check this.

In php.ini:

post_max_size = 220M
upload_max_filesize = 200M

On Ubuntu, you can edit "php.ini":

  • Apache: /etc/php/VERSION/apache2/php.ini
  • FPM (FastCGI Process Manager): /etc/php/VERSION/fpm/php.ini

In the paths above, replace VERSION with the specific version of PHP installed on your system (e.g., 8.18.2).

Then, restart your PHP process. For php fpm, you can restart with:

sudo systemctl restart php8.1-fpm.service
sudo systemctl reload php8.1-fpm.service 

For Apache, you can restart with:

sudo systemctl restart apache2

In nginx.conf:

http {
    client_max_body_size 200M;
}

Then, sudo systemctl restart nginx

For Apache, /etc/httpd/conf/httpd.conf.

LimitRequestBody 209715200

Then: sudo systemctl restart httpd