HTTP 500 Internal Server error when uploading files
Looks like this may have been answered on stack already:
You need to increase FcgidMaxRequestLen in httpd.conf file
use something like
FcgidMaxRequestLen 67108864
php upload and internal server error
astralmaster
Updated on June 04, 2022Comments
-
astralmaster almost 2 years
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 to2MB
even thoughphpinfo()
shows250MB
. So apparently it is blocked server-wide in WHM? Why does it say otherwise in phpinfo?