slawn — 2011-05-31T13:31:44-04:00 — #1
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...
dsmit — 2011-05-31T13:36:35-04:00 — #2
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
slawn — 2011-05-31T14:10:12-04:00 — #3
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):
and everything is running fine.... thanks for your help....
cavamondo — 2011-11-20T08:05:43-05:00 — #4
@slawn - how did you add it thru cpanel?
vladyn — 2012-08-16T07:16:11-04:00 — #5
Yeah - this is interesting question - I would like as well how this can be done through cPanel?