The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FastCGI upload error

Discussion in 'Workarounds and Optimization' started by zerpex, Oct 29, 2011.

  1. zerpex

    zerpex Member

    Joined:
    Oct 17, 2011
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello everyone,

    Today I was facing a big problem, for weeks ago I switched from suPHP to FastCGI, for first time, I should upload an image via image uploader on my website, but got an error 500, checked the error_log in the usr/local/cpanel/logs folder.. Didn't show anything, then I tried the 'real' error_log got the error, that I exceeded the limit for image upload, default in fastcgi was 128kb in upload..

    I changed it, with adding FcgidMaxRequestLen 20971520 which is 20mb, and it did work perfectly.

    I'm wondering why that limit doesn't get changed when I change the max_file_upload_size in php.ini? And is there a way in cpanel to set FcgidMaxRequestLen for fastcgi? Because when apache gets an update, my own config will be overwritten.

    Best regards,
    Lucas Rolff
     
Loading...

Share This Page