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