Perl configuration ??

I'm embarassed to post this, but I've been out of touch with luminis for a while due to other tasks here.

Has any one configured PERL to run from a cgi-bin direcotry or somewhere else on their luminis box ?

-Jon

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Tomcat CGI

To configure your Tomcat Webserver to use CGI

Do on each portal/web tier and resource tier:

1. Enable the CFIServlet and cgi-bin URL in the web.xml

cd /opt/pipeline/products/tomcat/tomcat-<yourinstancename>/conf
cp web.xml web.xml.orig
dos2unix web.xml web.xml

 

(The last command is only to clean up the file for us unix people editing it, you may not need to do this)

2. Edit the file web.xml
Uncomment:

  <servlet>
        <servlet-name>cgi</servlet-name>
        <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
        <init-param>
          <param-name>debug</param-name>
          <param-value>0</param-value>
        </init-param>
        <init-param>
          <param-name>cgiPathPrefix</param-name>
          <param-value>WEB-INF/cgi</param-value>
        </init-param>
         <load-on-startup>5</load-on-startup>
    </servlet>

    <!-- The mapping for the CGI Gateway servlet -->

    <servlet-mapping>
        <servlet-name>cgi</servlet-name>
        <url-pattern>/cgi-bin/*</url-pattern>
    </servlet-mapping>

3. Rename CGi jars supplied to be usuable

cd /opt/pipeline/products/tomcat/tomcat-usask/server/lib
mv servlets-ssi.renametojar servlets-ssi.jar
mv servlets-cgi.renametojar servlets-cgi.jar

4. Create the cgi directory and put your CGI scripts there

cd /opt/pipeline/webapps/luminis/WEB-INF
mkdir cgi
chown luminis:luminis cgi

5. Restart Luminis

Syndicate content