• I have tried to upload .exe file in the wordpress admin, and I have given some codes for allowing exe upload. now I am able to upload .exe files lesser size(2MB), but I am trying to upload a 230MB file and I am getting an error called Https error, when I take console it is showing an error 413 request entity too large. I have found similar question but no one has posted the answer or confirmation how this is resolved, We have tried to increase the below values in php.ini, but the error is same.

        upload_max_filesize localvalue/512M master value/2500M,
    
        post_max_size local value/512M master value/300M.
    
        memory_limit local value/512M master value/512M
    • This topic was modified 5 years, 7 months ago by Naveenbos.
Viewing 4 replies - 1 through 4 (of 4 total)
  • This error is related to Nginx, not PHP. Please have a look at this link.

    Thread Starter Naveenbos

    (@naveenbos1)

    But we are using Apache as web-server.So what could be the issue.

    You can try to set the LimitRequestBody directive in your .htaccess file if you’re using Apache

    Example: LimitRequestBody 256000000 (limit the size of the uploaded file to 250MB)

    This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body.

    Thread Starter Naveenbos

    (@naveenbos1)

    @rosehosting We have tried this LimitRequestBody 512000000 but it is still the same issue exists. Are there any other solutions for fixing this? I have given this value directly to htaccess is there any syntax for this?

    • This reply was modified 5 years, 7 months ago by Naveenbos.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘413 request entity too large error in wordpress using webserver apache?’ is closed to new replies.