If your webserver throws a HTML 500 error and Apache error_log file shows "malformed header from script. Bad header=<br />", then you probably have a misconfigured php.ini file in your website root directory. Mine had a magic_quotes_cpg=On. I commented that line and the error is gone.
If you found another fix for the malformed header error, please leave a comment below.
Category:
Comments
Thanks man!
Thanks man!
This saved my day.
I fixed this error by
I fixed this error by commenting line "register_globals = on" in php.ini.
This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
If your webserver throws a
If your webserver throws a HTML 500 error and Apache error_log file shows "malformed header from script. Bad header=<br />", then you probably have a misconfigured php.ini file in your website root directory.