Forum OpenACS Q&A: Trying to enable perl for awstats

Collapse
Posted by Rod Cap on
Hello, I was trying to enable perl to use awstats. I undocument this modules in the nsd.tcl:
ns_section "ns/server/${server}/modules/nscgi"
      ns_param  map "GET  /cgi-bin/ /web/$server/cgi-bin/"
      ns_param  map "POST /cgi-bin/ /web/$server/cgi-bin/"
      ns_param  Interps CGIinterps

ns_section "ns/interps/CGIinterps"
      ns_param .pl "/usr/bin/perl"

startup again the server and try to run a script in perl, but I only get the code.

What should I do? Are there some extra drivers I have to download, or something?
Thx in advance
Rod

Collapse
Posted by Jon Griffin on
You have to load nscgi. Also, you can look at http://jongriffin.com/static/consultant/nscgi