I believe that PWS requires that you place all CGIs in its own scripts directory, unless you explicitly set your preferences otherwise. As long as the scripts are in the correct place and PWS is running, chances are that your 500 errors are a result of something else. On Windows, the shebang line is almost a frivolity - as long as the script has a .pl or .cgi extension (and you have .cgi associated with perl.exe), it should run. I'm not suggesting to get rid of that line, because it would be bad style - but Win32 doesn't really care about it.
Some advice: - Use Carp and send fatals to the browser. You're not going to have helpful error logs with PWS on Win98, so printing the errors to the browser can help you decipher some of them. - If you have to do this on Win98 (shudder), then download a Win32 copy of Apache 1.3.6 and use that. It's a better server, it's free, it's more configurable than PWS, it's stable, and it will be easier to make your sites portable to other platforms. - Make sure the shopping cart script is made to be portable to Win32 computers. It may try to do things like send e-mailed receipts using sendmail rather than a Windows-based mailer. The only way to really tell what's going on and *why* you're getting 500 errors is to see what those errors are. Perl and Apache make a great combo in reporting why errors happen, so I am once again suggesting the use of Apache and the sh*tcanning of PWS. :) Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] http://www.insiteful.tv -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of m. forster Sent: Thursday, August 15, 2002 7:51 AM To: Perl Users Subject: Getting cgis to work Hello. I am a complete newbie to perl (though familiar with other languages, net and otherwise) and need some advice on getting perl cgis to work at all. I have downloaded a shopping cart implementation from an Internet site and cannot get anything other than "500 server errors". My problem is this - I have set up the "personal web server" which comes with Windows '98 and am using #!<path> to point the cgis at perl. I have 2 or 3 questions I am seeking the answers to: 1) Will perl cgis work with the Windows web server so long as I have a perl interpreter somewhere on my machine? 2) If so, can I just point the cgis with #!<path> or do I need to do something else? 3) I have downloaded and installed ActivePerl from O'Reilly's web site. I received a .msi file which I used by running it to install perl. Do I point the cgis to the perl.exe folder or the ActivePerl.msi folder? Thanks in advance. Mark Forster _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs