Sorry, I do not know the details of this problem and its fix. There have been several posts of problems of this type where the server is apparently sending out headers before the script does. In each case it has been fixed by the sysadmin, but there have not been follow-up posts with the specifics of the configuration fix.