Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

cgi.pm and apache

by kflee2000 (Initiate)
on Jun 30, 2013 at 23:49 UTC ( [id://1041674]=perlquestion: print w/replies, xml ) Need Help??

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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1041674]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-25 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found