You have to configure your webserver to execute your script. Typically, there's a cgi-bin directory, which is already configured to execute the CGI scripts which are in it (e.g. with ScriptAlias or ExecCGI in case you're using Apache — in this case, also see the tutorial Dynamic Content with CGI). OTOH, this can also be configured by extension (e.g., .cgi, .pl), etc.
Also note that (with Apache on *nix) the CGI script additionally needs to be executable (i.e. have the 'x' bit set for user/group/other (whichever applies) — in case of doubt, try chmod a+x card.cgi).
| [reply] [d/l] [select] |
Thank you! I found an Apache Handler in the domain's CPanel and activated the cgi, ppl.....one. Tried the postcard program again from my browser - AND IT WORKED BEAUTIFULLY. A thousand thank-yous. I would have reuploaded and downloaded and changed and uploaded and downloaded and changed till next Christmas and still wouldn't have got anywhere.
| [reply] |
Howdy!
I'm having a hard time seeing the Perl content in the question.
You don't say whether you are using Apache or something else. The behavior suggests that the second domain is configured differently than the first, such that .cgi files are not recognized as executable in the second domain. Compare the configuration details for both domains and see what is different about executables. Without more details, it is impossible to say anything more specific.
| [reply] |
Hi Michael - Ditto what I said above! Thank you.
| [reply] |