Forum OpenACS Development: AOLServer & Perl cgis?!?

Collapse
Posted by dwayne hinton on
is there any way of running perl scripts on aolserver? just think it's
a waste of resources to run two web servers on the same box. and i
do'nt want to use the apache aol_mod. i saw a sourceforge project,
called perl_aolserver or some thing but it's pre-alpha stage since
last year. does anyone have any ideas. also how do u add elements from
packages to a static adp page.
Collapse
Posted by Don Baccus on
Check out the documentation on nscgi.  Note that AFAIK this forks for each script, so it's not as efficient as mod_perl...
Collapse
Posted by Gilbert Wong on
Check out Jon Griffin's nscgi install guide. http://www.jongriffin.com/static/consultant/nscgi
Collapse
Posted by dwayne hinton on
thanks all, till next hurdle :)
Collapse
Posted by Alex Sokoloff on
Has anyone tried using nscgi with OpenACS 4? I'm wondering whether the mapping between /cgi-bin and the scripts directory will break when used in conjunction with the request processor.
Collapse
Posted by Jon Griffin on
Yes it works fine. In fact it won't work with ACS 3.x
Collapse
Posted by Roberto Mello on
I run several CGIs with nscgi and OpenACS 3.2.x. No problems here.
Collapse
Posted by Jon Griffin on
Let me rephrase that.
It won't work with ACS classic 3.x that started using the RP functions. Thanks Roberto for jogging my memory.
Collapse
Posted by David Walker on
What are the the RP functions?
Collapse
Posted by Jon Griffin on
Request Processor.
Collapse
Posted by Don Baccus on
The request processor traps every http[s] request to your OpenACS 4 AOLserver instance, does permission checking and routes it to the right filesystem path.  What Jon's implying is that the ACS 3.x classic versions that first implemented the request processor probably mapped requests to the cgi directory to /dev/null heaven (I'm guessing a bit here) while the current request processor correctly let's them get handled by AOLserver's CGI module.