[32007] in Perl-Users-Digest
Perl-Users Digest, Issue: 3271 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Jan 30 14:09:24 2011
Date: Sun, 30 Jan 2011 11:09:07 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 30 Jan 2011 Volume: 11 Number: 3271
Today's topics:
Re: Windows PC Related CGI Questions <edgrsprj@ix.netcom.com>
Re: Windows PC Related CGI Questions <edgrsprj@ix.netcom.com>
Re: Windows PC Related CGI Questions <cartercc@gmail.com>
Re: Windows PC Related CGI Questions <edgrsprj@ix.netcom.com>
Re: Windows PC Related CGI Questions <edgrsprj@ix.netcom.com>
Re: Windows PC Related CGI Questions <edgrsprj@ix.netcom.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 29 Jan 2011 04:13:55 -0600
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Windows PC Related CGI Questions
Message-Id: <O5GdnYDsKpD-dd7QnZ2dnUVZ_jSdnZ2d@earthlink.com>
"E.D.G." <edgrsprj@ix.netcom.com> wrote in message
news:PuKdnQPn_bitPd_QnZ2dnUVZ_gGdnZ2d@earthlink.com...
Thanks for all of the comments.
This is going to take a while. I have never heard of most of the
terminology that people used in their responses probably because I am not a
professional programmer. However, during the past five years or so I have
gotten through so many of the different aspects of using Perl that this one
should be manageable.
It took me almost two years of trying different things before I was
finally able to determine how to create .exe files from Perl .pl programs.
That effort by itself must have involved identifying and then linking
perhaps a dozen different modules with Perl.
My CGI module appears to be working. HTML code is being generated
but is simply being dumped off into space. It appears that I need to learn
how to get some Web server software (Apache or whatever) running on my
Windows PC.
------------------------------
Date: Sat, 29 Jan 2011 04:27:53 -0600
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Windows PC Related CGI Questions
Message-Id: <yYadnWPjmcU2dt7QnZ2dnUVZ_gqdnZ2d@earthlink.com>
"ccc31807" <cartercc@gmail.com> wrote in message
news:545c7ec2-80bc-41f2-8a9f-2f934fc52968@i40g2000yqh.googlegroups.com...
I have had the ActiveState version of Perl running for years. And
one of my Perl .pl programs is now about 8000 lines of code long. However,
most of the programs you mentioned I have never heard of before. This
appears to be a totally new aspect of the Perl programming process.
So, to get started,
With ActiveState Perl I am using their PPM program to identify and
link modules. A CGI module is installed and running.
Q: Should one of the available Apache modules be installed? Or should the
separate Apache Web server program be downloaded and installed?
Q: If a Perl Apache module can or should be used, which would be the
correct one to download? I looked at the list of available modules and
there must be dozens and dozens of them.
Q: It appears that mod_perl is a version of Perl that is different than the
ActiveState version. Is that correct? And if so, does that different
version need to be installed?
------------------------------
Date: Sat, 29 Jan 2011 10:58:59 -0800 (PST)
From: ccc31807 <cartercc@gmail.com>
Subject: Re: Windows PC Related CGI Questions
Message-Id: <2827dc2d-b540-451b-af12-910ee0ac7a1d@k17g2000pre.googlegroups.com>
On Jan 29, 5:27=A0am, "E.D.G." <edgrs...@ix.netcom.com> wrote:
> =A0 =A0 =A0 =A0With ActiveState Perl I am using their PPM program to iden=
tify and
> link modules. =A0A CGI module is installed and running.
You should also have DBI. You also probably have a DBD for MySQL,
almost certainly for ODBC if you choose to go that route.
> Q: =A0Should one of the available Apache modules be installed? =A0Or shou=
ld the
> separate Apache Web server program be downloaded and installed?
Get Apache from apache.org, the Windows binary, and install it. As I
recall, you have the option to install it as a Windows service, but
it's been a while. Anyway, start the server -- there should be
something in your 'All Programs' that will allow you to start,
restart, and stop your Apache server. Once you start it, open a
browser and go to 127.0.0.1 and you should see the Apache test page.
Finguring out how to ser CGI through Apache will take several hours of
work, but you need to go through the process.
> Q: =A0If a Perl Apache module can or should be used, which would be the
> correct one to download? =A0I looked at the list of available modules and
> there must be dozens and dozens of them.
mod_perl is an Apache(!) module. I've never had to fool with it
because it's always worked. Read up on (ead'old fashioned' CGI,
FastCGI, and mod_perl and you'll see what I'm talking about.
> Q: =A0It appears that mod_perl is a version of Perl that is different tha=
n the
> ActiveState version. =A0Is that correct? =A0And if so, does that differen=
t
> version need to be installed?
See above. mod_perl runs Perl IN Apache, it doesn't have anything to
do with Perl but how Apache communicates with the Perl process.
Get the book I mentioned. It's cheap and helpful.
CC.
------------------------------
Date: Sat, 29 Jan 2011 23:56:25 -0600
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Windows PC Related CGI Questions
Message-Id: <o8idnU8cL4EVYNnQnZ2dnUVZ_o-dnZ2d@earthlink.com>
"ccc31807" <cartercc@gmail.com> wrote in message
news:2827dc2d-b540-451b-af12-910ee0ac7a1d@k17g2000pre.googlegroups.com...
Again, thanks for the comments.
This appears to be a process that is not going to be especially
complex. The user simply needs to know what steps to take. And as I
mentioned in my original posting, it might be helpful to Perl users to have
detailed instruction lists available in the FAQ for Perl for getting things
like that organized.
There are many other topics that could benefit from those types of
"cookbook" lists of instructions. For example, part of this bulletin board
program development project involves including code in the program that will
allow it to automatically visit some Web site and download, store, and
process the latest data, weather information for example. The documentation
for using code for doing that was correct. However, it wouldn't work. And
after doing a fair amount of checking various things I discovered that the
problem was that my computer's virus software was blocking Perl when it
tried to visit Web sites. And there were no error messages indicating that
this was what was happening. So, information regarding the need to watch
for things like that in the Perl code instructions would be helpful.
------------------------------
Date: Sun, 30 Jan 2011 08:55:10 -0600
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Windows PC Related CGI Questions
Message-Id: <J8Cdnb-kYctQ5tjQnZ2dnUVZ_uKdnZ2d@earthlink.com>
"E.D.G." <edgrsprj@ix.netcom.com> wrote in message
news:PuKdnQPn_bitPd_QnZ2dnUVZ_gGdnZ2d@earthlink.com...
Its time to put another Perl related project in the "Success" bin!!!
A kind soul who saw some of my posts contacted me and explained that
the XAMPP program works quite well for CGI applications on a Windows PC. It
might be described as a highly enhanced version of the Apache program.
http://www.apachefriends.org/en/xampp-windows.html
I downloaded the normal installer package (about 66 megabytes) and
then told it to install.
Even on a fairly fast dual core Windows Vista PC with 4 gigabytes of
memory it took a while. But it installed without any problems and is now
running. And, it works.
It contains all of the needed files for running Perl CGI programs
etc. including its own copy of Perl that is stored in one of its
subdirectories. So, a CGI .pl program used by this Web server program has
to have its first line modified with the correct address for the Perl
compiler. That is easy to do.
Then the user has to determine where the .pl programs need to be
stored and how to get them running. The Web site instructions for the
program contain all of the needed information. However, I feel that they
could be a little more detailed and clearer for those of us who are working
at the intermediate Perl programming level and have little or no CGI
experience. It took me several hours to finally learn how to get everything
to work.
The first version of my new Perl language Internet Bulletin Board
program is now up and running at one of my Web sites and also running on my
Windows Vista PC.
So, its time to put another Perl related project in the "Success"
bin. That effort got done a lot sooner and with much less time and energy
than I expected considering the complexity of the subject matter!
Thanks again to all of the Perl Newsgroup posters for their
recommendations and advice.
------------------------------
Date: Sun, 30 Jan 2011 09:01:49 -0600
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Windows PC Related CGI Questions
Message-Id: <uPKdnRaKAevG4NjQnZ2dnUVZ_sKdnZ2d@earthlink.com>
"ccc31807" <cartercc@gmail.com> wrote in message
news:2827dc2d-b540-451b-af12-910ee0ac7a1d@k17g2000pre.googlegroups.com...
>Finguring out how to ser CGI through Apache will take several hours of
>work, but you need to go through the process.
That time estimate was actually about right. However, that was
largely because I had some additional help with this as I said in another
post. Without that assistance I think that it would have taken quite a bit
longer.
In any case, by whatever means, the effort was a success!
Thanks again for your recommendations that provided a good starting point.
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 3271
***************************************