Monday, July 9, 2018

Increase upload file size : Nginx, PHP on Ubuntu

In /etc/nginx/sites-available


server {
     client_max_body_size 128m;



location ~ \.php$ {
         fastcgi_param PHP_VALUE "upload_max_filesize=128M \n post_max_size=128M";
}


When i used to publish WordPress site on VPS server. In the WordPress Back end Limit to 2MB uploading. After checking several methods, above option was success.  

No comments:

Post a Comment

  To configure Nginx for a Laravel application located within a subfolder, a  location  block is required to handle requests to that specifi...