I for one will need more information to diagnose this.
You mention that the OS is different on the two boxes but what about the
rest of the configuration? For example, is the web server on the old
machine the same as on the new machine (e.g., are the web servers on
both machines Apache?)? Are the versions of the web servers the same on
both boxes?
If it is Apache, are you using mod_perl and is the configuration for
mod_perl the same on both boxes? What other modules are installed?
What about Perl? Is it the same version of Perl on both boxes? You can
figure that out by running
perl -V
from the command line.
Rather than attempting to figure out the details of potentially large
scripts, have you tried to create a small test script to see if that
small sample script works on both machines in the same manner?
Have you tried running from command line one of the scripts on the
machine on which there are problems? Any error messages?
Do the Perl scripts use the -w switch (or ?
Do the scripts include 'use strict'?
I'm sorry if this sounds like I'm being picky but there simply is not
enough information in your post to make even a decent guess. With the
above information, we should have at least some basis from which to
work.
Thanks,
Dan
Pam Derks wrote:
>
> Hi,
>
> Am testing out a new web server running SunOS5.8 " and I can't get any of my cgi
>scripts to run. I get this error message:
> "Premature end of script headers"
>
> the cgi scripts worked perfectly on the old server which was running Digital UNIX.
>
> any ideas?
>
> many thanks, Pam