Internal Server Error during upload file > 1.3k

Discussion in 'Installation/Configuration' started by artinfo, Sep 16, 2024.

  1. artinfo

    artinfo Member

    Hi,
    Can anyone help me with such problem:
    1. I upgraded Debian to 12 and ISPConfig
    2. After that every page I try to upload file > 1.3k via web gives me 500 error (apache error log: mod_fcgid: HTTP request length 139264 (so far) exceeds MaxRequestLen (131072)) -
    I have to mention: (php max_upload_file is set properly)
    3. I found that the problem is probably in: FcgidMaxRequestLen that has default value is 131072
    4. The problem is that settings is set separately for each vhost ..

    Is there a solution to do it globally? Maybe there is other solution?

    Thanks in advance.
     
    Last edited: Sep 16, 2024
  2. artinfo

    artinfo Member

    Add: I found the reason and solution: ./apache2/mods-available/fcgid.conf was too small value. Interesting thing is:

    1. Before new manual install ISPC had proper value and worked
    2. After expert install of multiserver ISPC set much smaller value and all file uploads caused 500 error. I installed ISPC only (apache, postfix etc. did manually)
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The ISPConfig installer sets:

    Code:
    MaxRequestLen 15728640
    in that file and not a value of 139264. Also I have not hear of any other system having a similar issue, so its likely caused by your manual installation changes.
     
  4. artinfo

    artinfo Member

    The point is I did the same install of ISP since Debian 7 (or 6)... everytime I install services and ISPC by script (expert install) and there ws no problem. In case of Deb12 and ISPC that value is lower and ISPC script not fix it. Either there is D12 error (change/bug) or ISPC script doesn't check that problem. I double check that issue. Works fine on D11... works wrong od D12. Anyway... it is good to check that issue during ISPC installation (all modes). Thanks.
     

Share This Page