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...
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):
and everything is running fine.... thanks for your help....
@slawn - how did you add it thru cpanel?
Yeah - this is interesting question - I would like as well how this can be done through cPanel?
This topic is now closed. New replies are no longer allowed.