Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Output web page with Padre ... How ?

by sundialsvc4 (Abbot)
on Apr 21, 2014 at 13:48 UTC ( #1083020=note: print w/ replies, xml ) Need Help??


in reply to Output web page with Padre ... How ?

Indeed.   The crux of your question, Dofski, is:   “how do I get Apache to run my CGI program, and give me its output, instead of just showing me its source code?”

And my short but sincere answer to that question is ... “Google that.”   The question is entirely programming-language independent, and it is definitely a FAQ.   For instance, http://httpd.apache.org/docs/2.0/howto/cgi.html, or http://forums.devarticles.com/web-server-configuration-51/php-pages-won-t-load-show-source-code-apache-2t-52648.html, or maybe https://www.linuxquestions.org/questions/linux-software-2/apache-cgi-problem-browser-not-running-script-130250/.

Typically, the CGI-script material is placed in a certain <Location> in which an AddHandler directive tells Apache to recognize certain filetypes as being CGI scripts that are to be run, along with additional information that specifies exactly how to run them.   Absent such directives, Apache treats everything as text to be served.


Comment on Re: Output web page with Padre ... How ?
Re^2: Output web page with Padre ... How ?
by dofski (Initiate) on Apr 21, 2014 at 20:49 UTC

    Thank-you for advice and links. I had some basic misunderstanding and perhaps wrong expectations. I now view the web pages via localhost in the browser. I also got HTML::Template to work.

      “W00T!! W00T!!”   :-D

      “Welcome to the Monastery,” and please keep in touch with your future questions.   All of us have “been there, done that ...”

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1083020]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2014-10-26 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls