Answer the question
In order to leave comments, you need to log in
How to increase maximum file upload size limit in Wordpress?
Hello. I need to upload video files up to 800 MB to my Wordpress site. WordPress has been configured by default so that the maximum file upload size has been set to 2 MB. I read on the Internet that in order to increase the limits there are 3 options:
1) Correct the PHP settings
2) Register the settings in the .htaccess file.
3) Register the settings in the site theme file functions.php
Sources:
- https ://wp-lessons.com/kak-uvelichit-maksimalnyiy
-...
As a result, the largest file that I have been able to upload at the moment is 128 MB - everything above is not loaded. The scale goes on and resets by 3/4 and starts over and it turns into a vicious circle.
By the way, after making the php settings, on the page for uploading files to WordPress, the inscription with the limit changed and became instead of 2 mb the previous 800 mb. That is, WordPress itself confirmed that the changes were taken into account by them, but in fact they were taken into account, but not quite as I indicated in the php settings. I suspect that somewhere some setting does not allow you to still upload files larger than 128 MB.
Question: What is the problem? Maybe some other settings need to be specified somewhere?
Answer the question
In order to leave comments, you need to log in
The problem in my case was not with the PHP or CMS settings, the problem was in the settings of the nginx web server of my virtual dedicated server (file /etc/nginx/nginx.conf), or more precisely, in the client_max_body_size directive that sets the maximum allowable size of the request body client. I increased this parameter to the required volume (800 MB), and it was set to 128 MB. Now everything works as it should.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question