The line:
@apache_setenv('no-gzip', 1);
Causes a 500 error in CentOS and RedHat.
http://stackoverflow.com/questions/2664441/phps-apache-setenv-function-causes-500-internal-server-error
As one of the comments in the stackoverflow link suggests it might be an issue with PHP being setup as a CGI-extension.