SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php file upload 500 internal server error

    I just got a new VPS with cPanel. I use fastcgi as php handler and eaccelerator. I moved my website and everything was running fine until I needed to upload an image with php script (any file in fact).....
    So if I try to upload a file less than 90kb in size everything is going OK - so it's not a matter of permissions... if I try to upload anything above 90kb I get a 500 Internal Server Error... my first guess was to check the php.ini - so I did and the post_max_size and upload_max_filesize limit is 8mb and I'm definitely not going above the max exec / input time, memory limit is 32mb....

    I'm wrecking my head long enough now and I don't know where to look next...

    any thoughts???

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2010
    Location
    Netherlands
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try looking into your webserver (Apache/nginx or whatever you use) error_log. That usally gives you more details on a 500 error.
    It's usually located in /var/log/($webserver_service_name)/error_log e.g. /var/log/httpd/error_log or /var/log/nginx/error_log

  3. #3
    SitePoint Member
    Join Date
    May 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dsmIT View Post
    Try looking into your webserver (Apache/nginx or whatever you use) error_log. That usally gives you more details on a 500 error.
    It's usually located in /var/log/($webserver_service_name)/error_log e.g. /var/log/httpd/error_log or /var/log/nginx/error_log
    thanks... found it.... it was:

    mod_fcgid: HTTP request length 131308 (so far) exceeds MaxRequestLen (131072)

    so I've changed the limit by adding this to global httpd.conf (from cPanel):

    <IfModule mod_fcgid.c>
    MaxRequestLen 15728640
    </IfModule>

    and everything is running fine.... thanks for your help....

  4. #4
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @slawn - how did you add it thru cpanel?

  5. #5
    SitePoint Member
    Join Date
    Aug 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah - this is interesting question - I would like as well how this can be done through cPanel?


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •