php upload gave ERROR 500 - Internal Server Error! / still can't upload after fix?

Discussion in 'ISPConfig 3 Priority Support' started by jpcyrenne, Mar 18, 2015.

  1. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Good Day,
    ref: CentOS 6.6 / ISPConfig

    I set up a simple phpscript to prove my case. It seems a bit long to load a 100K file but it works, but anything I select over 100K-200K will somehow time out before and give me a 500 error?

    I used this very simple script:

    I have modified:
    upload_max_filesize and post_max_size to 20M
    memory_limit is at 128M

    In case it was a fast-cgi issue config I also tried PHP-FPM and suPHP. Same issue?

    [Wed Mar 18 15:47:45 2015] [warn] [client] mod_fcgid: HTTP request length 131998 (so far) exceeds MaxRequestLen (131072), referer:

    [Wed Mar 18 15:50:53 2015] [warn] [client] mod_fcgid: HTTP request length 131999 (so far) exceeds MaxRequestLen (131072), referer:

    [Wed Mar 18 15:53:51 2015] [error] [client] SoftException in Application.cpp:257: File "/var/www/clients/client1/web2/web/upload.php" is writeable by others, referer:
    [Wed Mar 18 15:53:51 2015] [error] [client] Premature end of script headers: upload.php, referer:

    I put back Fast-CGI.

    I found the 500 error fix :
    ( vi /etc/httpd/conf.d/fcgid.conf and put : FcgidMaxRequestLen 20000000 )

    I still can't upload bigger than 200K? Any idea? It really seems like somethig takes a bit of time to load between loading the fie and Uploading it to the server.

    Thanks ahead as always!

    JP Cyrenne
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    check the upload and POST limits for this site with phpinfo().

Share This Page