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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |