dofski has asked for the wisdom of the Perl Monks concerning the following question:
I am very newbie ... one week
I use Windows 7
I installed Apache ... it works with,
Http:\\localhost test, and is running.
I installed Dwimperl. I can run simple Perl programs from the command line and Padre.
I had great pain but eventual success to get local host to output Hello World as web page,
code is in Hello2a.pl, it is:
#!C:\Dwimperl\Perl\bin\perl print "Content-type:text/html\n\n"; print "<html>\n"; print "<h1>Hello World</h1>\n"; print "</html>\n";
After many trials it worked when I put Hello2a.pl in,
C:\Apache2\cgi-bin
Now I open Hello2a.pl in Padre. when I run, the code is just output in the command line with the script as above. No web page with just Hello World appears.
I checked view options in Padre and chose HTML ... but on run get error ... no execution mode was defined etc Perhaps I need to install some CPAN modules ?
Any advice greatly appreciated as I've surfed and read without success.
dofski
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Output web page with Padre ... How ?
by davido (Cardinal) on Apr 20, 2014 at 16:16 UTC | |
by dofski (Initiate) on Apr 21, 2014 at 20:53 UTC | |
|
Re: Output web page with Padre ... How ?
by locked_user sundialsvc4 (Abbot) on Apr 21, 2014 at 13:48 UTC | |
by dofski (Initiate) on Apr 21, 2014 at 20:49 UTC | |
by locked_user sundialsvc4 (Abbot) on Apr 22, 2014 at 15:01 UTC |