Perl
Title: Perl Anyone else have trouble getting Perl to work??? Anyone have any example perl code/?? Like what i have to put for the first line? I keep getting a 500 error Joseph Faisal Nusairat, Sr. Applications Developer WorldCom tel: 614-723-4232 pager: 888-452-0399 textmsg: [EMAIL PROTECTED]
orion CGI/Perl examples?
Hey folks, Has anyone got/seen a simple example of setting up Orion to serve both CGI/Perl and servlets? The latter is blissfully easy, but I have no idea how to get CGI/Perl working, well, some ideas but they seem to be all wrong! Thanks, Gary
orion and perl/cgi -- got it working!
Figured out how to do perl/cgi in orion, and wow was it easy. In the web.xml for my application I added the lines: servlet servlet-namecgi/servlet-name servlet-classcom.evermind.server.http.CGIServlet/servlet-class /servlet servlet-mapping servlet-namecgi/servlet-name url-pattern*.cgi/url-pattern /servlet-mapping (I tried getting using the url-pattern 'cgi-bin/*.cgi' but it didn't seem to work.) Just to make things work like my usual Apache setup I created a new web site on a funky port by adding the following lines in server.xml: application name="gts-rc4" path="/export/home/shea/work/dev/rc4/nova/war/dist" / web-site path="./gts-rc4.xml" / and creating the gts-rc4.xml file to the orion/config directory: web-site host="[ALL]" port="8185" display-name="gts-rc4" secure="false" !-- The default web-app for this site, bound to the root -- default-web-app application="default" name="defaultWebApp" / web-app application="gts-rc4" name="web" root="/" / !-- Access Log, where requests are logged to -- access-log path="/var/orion/log/gts-rc4-access.log" / /web-site This is a development site or it would be on port 80. All that remained to do was to make sure that all the html and cgi stuff was in the dist/web directory (dist from the application path, web from the web-app name (?)). Nice. It would have been even nicer with doc, of course, but hey, this ain't bad! Gary
Re: Perl CGI
Thanks Andre... I know that this may not be the place to ask this, but here it goes. My legacy cgi scripts work great currently in production using Netscape Web Server. I ported all cgi scripts locally to Apache and JRun under Red Hat 6.2 and they work great. Now I want to use Orion so I shut down Apache and JRun and installed Orion on the same Red Hat 6.2 machine and my cgi scripts now do not work. Unfortunately, I have inherited these scripts and am a Java guy, not a Perl guy. I get the following error: Cannot locate ./Library/auth-lib.pl in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) The scripts will work if I look for /fully-qualified-path-to-my-scripts/Library/auth-lib.pl Like I said, this may not be the place to ask, but since I ported on the same machine using Apache and JRun and it worked fine and now it doesn't under Orion I thought I would through it out there. My pertenent directory structure looks like this: orion orion/my-web-app orion/my-web-app/cgi-bin/ {base cgi scripts here} orion/my-web-app/cgi/bin/my-scripts/ {my specific scripts here} orion/my-web-app/cgi/bin/my-scripts/Library/ {my auth-lib.pl} Thanks for any help I may get. Dale - Original Message - From: Andre Vanha To: Orion-Interest Sent: Friday, March 17, 2000 3:14 PM Subject: RE: Perl CGI The global-web-application file in orion/config contains a mapping so that any *.pl file is executed through Orion's CGI servlet (which in turn invokes perl). All you need to do is make sure the perl executable is in your path. Hope this helps, Andre V. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dale BronkSent: Tuesday, March 14, 2000 7:01 PMTo: Orion-InterestSubject: Perl CGI Can someone give me some help on settings to allow my web-app to do Perl cgi? I have some legacy scripts that I need to use and can't seem to find anything in the documentation. On that note, any news on when we will have real documentation as far as a full user manual with getting started (hand holding) sections through advanced topics like clustering, jsm, etc? Dale Bronk[EMAIL PROTECTED]Windscape Consulting, Inc.http://www.windscape.com
RE: Perl CGI
The global-web-application file in orion/config contains a mapping so that any *.pl file is executed through Orion's CGI servlet (which in turn invokes perl). All you need to do is make sure the perl executable is in your path. Hope this helps, Andre V. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dale BronkSent: Tuesday, March 14, 2000 7:01 PMTo: Orion-InterestSubject: Perl CGI Can someone give me some help on settings to allow my web-app to do Perl cgi? I have some legacy scripts that I need to use and can't seem to find anything in the documentation. On that note, any news on when we will have real documentation as far as a full user manual with getting started (hand holding) sections through advanced topics like clustering, jsm, etc? Dale Bronk[EMAIL PROTECTED]Windscape Consulting, Inc.http://www.windscape.com
Perl CGI
Can someone give me some help on settings to allow my web-app to do Perl cgi? I have some legacy scripts that I need to use and can't seem to find anything in the documentation. On that note, any news on when we will have real documentation as far as a full user manual with getting started (hand holding) sections through advanced topics like clustering, jsm, etc? Dale Bronk[EMAIL PROTECTED]Windscape Consulting, Inc.http://www.windscape.com