![]() ![]() ![]() But i have problems on commit large files. The official Kubernetes client is kubectl: a command-line tool for interacting. The issue I've been seeing is that whenever the user tries to upload a file greater than 128MB I see an error on the proxy_error_log that says:Ġ 21:46:18 31224#0: *9 client intended to send too large body: 175420278 bytes, client: XX.XX.XX.XX, server:, request: "POST /admin/products/1 HTTP/1.1", host: "", referrer: "referrer" From this error we can understand that an attempt to upload a file using POST method was made which ended up with the error client intended to send too large body to fix this a nginx directive named clientmaxbodysize has to be created/modified. Save and exit Vim by typing :wq (Write and quit.)įinish by restarting PHP-FPM: $ sudo service php7.HOWEVER (and this is where I'm stuck) after restarting the nginx service, the fille /etc/nginx//vhosts/ continues to hold the value: I proceeded to change the configuration of /etc/nginx/nf to include I've been googling this issue and everything points to the nginx configuration (PHP parameters have already been set up). Locate and change these settings: post_max_size = 128M upload_max_filesize = 128M It will say something like this: etc/php/7.0/fpm/php.ini In case you’re wondering, these are the things you have to change in the php.ini file.įirst, locate the correct php.ini file by running phpinfo() Look at the Loaded configuration file column. ![]() ![]() Notice the difference? Don’t forget to run: sudo service nginx reload php.ini But after a few minutes of googling, it turned out that I could move the client_max_body_size “setting” from the location block to the server block in the Nginx vhost file.įrom this: # /etc/nginx/sites-avaliable/ server □ That’s strange, since 80-something is less than 128 mb. So let’s check with our special friend: the error log. Even though I had increased the maximum upload size to 128 MB. I got an (very helpful □) HTTP error when trying to upload a 80-something MB file to WordPress the other day. Increase file upload size in WordPress on Nginx server ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |