Premature end of script headers means that either the files weren't uploaded in ascii or the perl path is incorrect. Ensure that all files except images have been uploaded in ascii and that the correct path to perl 5 is specified in the cgi files.