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 3.0.5.4p5

    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: http://www.dzone.com/snippets/very-simple-php-file-upload

    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 70.54.164.149] mod_fcgid: HTTP request length 131998 (so far) exceeds MaxRequestLen (131072), referer: http://friendsofmmfa.com/test.php

    [Wed Mar 18 15:50:53 2015] [warn] [client 70.54.164.149] mod_fcgid: HTTP request length 131999 (so far) exceeds MaxRequestLen (131072), referer: http://friendsofmmfa.com/test.php

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

    I put back Fast-CGI.

    I found the 500 error fix : https://www.howtoforge.com/apache2-mod_fcgid-http-request-length-exceeds-maxrequestlen
    ( 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.
    http://friendsofmmfa.com/test.php

    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