kflee2000 has asked for the wisdom of the Perl Monks concerning the following question:

I am new to Perl and have install Apache on a Linuxmint as well as install CGI.PM (3.36).

When test it with: http://localhost/cgi-bin/tryit.cgi it works fine.

When test without use CGI: http://localhost/cgi-bin/hello.pl, it also work fine.

So I guess my apache setup is more or less ok.

But when I rename tryit.cgi to tryit.pl and it will not work! It showed the not-so-useful server error!

Does it mean if one includes use CGI in the program, it has to use .cgi extentsion?

Replies are listed 'Best First'.
Re: cgi.pm and apache
by Anonymous Monk on Jul 01, 2013 at 00:41 UTC

        thanks, it is the most obvious x permission issue that somehow skip my attention. On testing the tryit.cgi, can I save the form content to a file in the server? Try to insert file open in the "if (param())" section but does not seem to work.

        In other words, how to tell a section to be run as server side program while the other use CGI.pm for web construct?