Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Webhosting with Perl/CGI

by Your Mother (Chancellor)
on Jun 07, 2012 at 14:30 UTC ( #974966=note: print w/replies, xml ) Need Help??

in reply to Webhosting with Perl/CGI

What ww said, though you don't even need a "real" webserver at this point.

File hai.cgi

#!/usr/bin/env perl use strictures; use CGI qw(:standard); print header(), start_html("OHAI"), h1("HAI DER"), blockquote("I CAN HAZ SEE GEE AIEE?"), p("KTHXBAI!"), end_html();

Command line-

moo@cow[201]~>plackup -L Shotgun -p 8080 -MPlack::App::WrapCGI -e 'Pla +ck::App::WrapCGI->new(script => "/home/moo/hai.cgi")' # HTTP::Server::PSGI: Accepting connections at http://0:8080/

Then visit your CGI at something like http://localhost:8080 depending on your box.

Helpful reading

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://974966]
[shmem]: karlgoethebier: here abouts people are sitting in big tents, gulp beer and ingest badly scorched chicken and sausages while (not) listening to afwul musik
[shmem]: *awful
[choroba]: panem et circenses
[karlgoethebier]: shmem: Yes. I didn't go to the firefighters party just 500 yards from my home this year...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-05-25 12:47 GMT
Find Nodes?
    Voting Booth?