Bluehost.com Web Hosting $6.95

Re: Apache CGI & Perl

This is a discussion on Re: Apache CGI & Perl within the Windows Web Servers forums, part of the Web Server and Related Forums category; Thanks DvDmanDT, I couldn't get the first method to work but registry one works great. Any ideas on how ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-04-2003
Dan Corder
 
Posts: n/a
Default Re: Apache CGI & Perl

Thanks DvDmanDT, I couldn't get the first method to work but registry
one works great.
Any ideas on how I can change the perl include path?


"DvDmanDT" <dvdmandt@telia.com> wrote in message news:<N2YWa.18477$mU6.17661@newsb.telia.net>...
> One way to make all .cgi's parsed:
>
> ScriptAlias /perl_secret/ "C:/perl/bin/"
> AddType application/x-httpd-perl .cgi
> Action application/x-httpd-perl "/perl_secret/perl.exe"
>
> Next way:
>
> ScriptInterpreterSource registry
>
> Although, that requres .cgi files to be associated with Perl... Or
> something... You can also setup some other key for it...
> --
> // DvDmanDT
> MSN: dvdmandt@hotmail.com
> Mail: dvdmandt@telia.com
> "Dan Corder" <junk@dancorder.com> skrev i meddelandet
> news:a5a09a37.0308011002.1a4acd62@posting.google.c om...
> > Hi,
> >
> > I've been developing some CGI scripts against IIS but have just
> > switched to Apache. There are some configuration options that either
> > don't exist or I can't find and I'm hoping someone can tell me which
> > it is.
> > Firstly I can't find anywhere to specify the Perl.exe that apache uses
> > other than adding a #! line to each script, is there a way of setting
> > this globally?
> > Secondly I can't find any way of setting an include path for some perl
> > modules that I have written and want to use in the cgi scripts (I get
> > the error: Can't locate DbObject.pm in @INC (@INC contains:
> > C:/Perl/lib C:/Perl/site/lib .) at F:/Work/Technical/website/login.cgi
> > line 9. BEGIN failed--compilation aborted at
> > F:/Work/Technical/website/login.cgi line 9.).
> > I would rather keep my modules separate from the 'proper' ones and I
> > don't want to add in hundreds of 'requires' lines, so is there another
> > way?
> >
> > Any help would be greatly appreciated.
> > Regards,
> > Dan

  #2 (permalink)  
Old 08-04-2003
DvDmanDT
 
Posts: n/a
Default Re: Apache CGI & Perl


Well, I'm not a Perl developper of any kind so I'm afraid I don't...
--
// DvDmanDT
MSN: dvdmandt@hotmail.com
Mail: dvdmandt@telia.com
"Dan Corder" <junk@dancorder.com> skrev i meddelandet
news:a5a09a37.0308040125.6755c7c1@posting.google.c om...
> Thanks DvDmanDT, I couldn't get the first method to work but registry
> one works great.
> Any ideas on how I can change the perl include path?
>
>
> "DvDmanDT" <dvdmandt@telia.com> wrote in message

news:<N2YWa.18477$mU6.17661@newsb.telia.net>...
> > One way to make all .cgi's parsed:
> >
> > ScriptAlias /perl_secret/ "C:/perl/bin/"
> > AddType application/x-httpd-perl .cgi
> > Action application/x-httpd-perl "/perl_secret/perl.exe"
> >
> > Next way:
> >
> > ScriptInterpreterSource registry
> >
> > Although, that requres .cgi files to be associated with Perl... Or
> > something... You can also setup some other key for it...
> > --
> > // DvDmanDT
> > MSN: dvdmandt@hotmail.com
> > Mail: dvdmandt@telia.com
> > "Dan Corder" <junk@dancorder.com> skrev i meddelandet
> > news:a5a09a37.0308011002.1a4acd62@posting.google.c om...
> > > Hi,
> > >
> > > I've been developing some CGI scripts against IIS but have just
> > > switched to Apache. There are some configuration options that either
> > > don't exist or I can't find and I'm hoping someone can tell me which
> > > it is.
> > > Firstly I can't find anywhere to specify the Perl.exe that apache uses
> > > other than adding a #! line to each script, is there a way of setting
> > > this globally?
> > > Secondly I can't find any way of setting an include path for some perl
> > > modules that I have written and want to use in the cgi scripts (I get
> > > the error: Can't locate DbObject.pm in @INC (@INC contains:
> > > C:/Perl/lib C:/Perl/site/lib .) at F:/Work/Technical/website/login.cgi
> > > line 9. BEGIN failed--compilation aborted at
> > > F:/Work/Technical/website/login.cgi line 9.).
> > > I would rather keep my modules separate from the 'proper' ones and I
> > > don't want to add in hundreds of 'requires' lines, so is there another
> > > way?
> > >
> > > Any help would be greatly appreciated.
> > > Regards,
> > > Dan



  #3 (permalink)  
Old 08-08-2003
Dan Corder
 
Posts: n/a
Default Re: Apache CGI & Perl

For the benefit of anyone that reads this thread in the future I got
the CGI scripts to use my own include path by adding

SetEnv PERL5LIB f:/work/technical

to the end of my httpd.conf file.

Details of SetEnv are at:
http://httpd.apache.org/docs/mod/mod_env.html


"DvDmanDT" <dvdmandt@telia.com> wrote in message news:<8_rXa.18675$mU6.18756@newsb.telia.net>...
> Well, I'm not a Perl developper of any kind so I'm afraid I don't...
> --
> // DvDmanDT
> MSN: dvdmandt@hotmail.com
> Mail: dvdmandt@telia.com
> "Dan Corder" <junk@dancorder.com> skrev i meddelandet
> news:a5a09a37.0308040125.6755c7c1@posting.google.c om...
> > Thanks DvDmanDT, I couldn't get the first method to work but registry
> > one works great.
> > Any ideas on how I can change the perl include path?
> >
> >
> > "DvDmanDT" <dvdmandt@telia.com> wrote in message

> news:<N2YWa.18477$mU6.17661@newsb.telia.net>...
> > > One way to make all .cgi's parsed:
> > >
> > > ScriptAlias /perl_secret/ "C:/perl/bin/"
> > > AddType application/x-httpd-perl .cgi
> > > Action application/x-httpd-perl "/perl_secret/perl.exe"
> > >
> > > Next way:
> > >
> > > ScriptInterpreterSource registry
> > >
> > > Although, that requres .cgi files to be associated with Perl... Or
> > > something... You can also setup some other key for it...
> > > --
> > > // DvDmanDT
> > > MSN: dvdmandt@hotmail.com
> > > Mail: dvdmandt@telia.com
> > > "Dan Corder" <junk@dancorder.com> skrev i meddelandet
> > > news:a5a09a37.0308011002.1a4acd62@posting.google.c om...
> > > > Hi,
> > > >
> > > > I've been developing some CGI scripts against IIS but have just
> > > > switched to Apache. There are some configuration options that either
> > > > don't exist or I can't find and I'm hoping someone can tell me which
> > > > it is.
> > > > Firstly I can't find anywhere to specify the Perl.exe that apache uses
> > > > other than adding a #! line to each script, is there a way of setting
> > > > this globally?
> > > > Secondly I can't find any way of setting an include path for some perl
> > > > modules that I have written and want to use in the cgi scripts (I get
> > > > the error: Can't locate DbObject.pm in @INC (@INC contains:
> > > > C:/Perl/lib C:/Perl/site/lib .) at F:/Work/Technical/website/login.cgi
> > > > line 9. BEGIN failed--compilation aborted at
> > > > F:/Work/Technical/website/login.cgi line 9.).
> > > > I would rather keep my modules separate from the 'proper' ones and I
> > > > don't want to add in hundreds of 'requires' lines, so is there another
> > > > way?
> > > >
> > > > Any help would be greatly appreciated.
> > > > Regards,
> > > > Dan

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:26 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0