This is driving me crazy. I have a php file upload script hosted on CPanel-controlled web hosting, whenever I try to upload files larger than 3-4 MB I get a HTTP 500 Internal Server Error. Now, I did create a php.ini file in my public_html directory and did specify:
upload_max_filesize = 250M
post_max_size = 250M
and indeed, when I execute phpinfo()
I see that both of these values are set and active. When I run the exact same script on my local wamp configuration it works.
I'm out of options here. What could it be? Memory exhaustion? Highly doubt it.
EDIT:
Weird: when I go to PHP Configuration
in CPanel, upload_max_filesize
is set to 2MB
even though phpinfo()
shows 250MB
. So apparently it is blocked server-wide in WHM? Why does it say otherwise in phpinfo?