CGI configuration for Change 5.3.1

95 views
Skip to first unread message

ZQ

unread,
Dec 16, 2013, 2:11:27 PM12/16/13
to synergy...@googlegroups.com
Hello,

It may be too early to ask questions about 5.3.1, but I'm testing upgrading to it from 5.2 and facing an issue on how set cgi to use perl. In 5.2 this setting is done in change.xml which in 5.3 and 5.3.1 is replaced by jetty.xml.  Prior to 5.3.1 Jetty is using mortbay and it uses eclipse.  I'm trying to change the following configuration to work for 5.3.1 and was wondering if anyone has a solution for it

<Call name="addContext">
  <Arg>/cgi-bin/*</Arg>
  <Set name="ResourceBase">../WEB-INF/wsconfig/triggers</Set>
  <Call name="addServlet">
  <Arg>Common Gateway Interface</Arg>
 <Arg>/</Arg>
 <Arg>org.mortbay.servlet.CGI</Arg>
 <Put name="Path">/usr/local/bin:/bin:/usr/bin</Put>
 <Put name="commandPrefix">perl</Put>
 <Put name="ENV_PERL5LIB"><SystemProperty name="jetty.home" default="."/>/webapps/change/WEB-INF/perl/:../WEBINF/perl/lib/perl5/site_perl/5.8.6:</Put>
  </Call>
</Call>


ZQ

unread,
Dec 26, 2013, 11:53:48 AM12/26/13
to synergy...@googlegroups.com
Hello,

With the help of IBM support, the following needs to be added to web.xm under <Change-Install>/WEB-INF

<!-- Add CGI Servlet -->
<servlet>
   
<servlet-name>CGI</servlet-name>
    <servlet-class>org.eclipse.jetty.servlets.CGI</servlet-class>
    <load-on-startup>1</load-on-startup>

    <init-param>
<param-name>commandPrefix</param-name>
<param-value>perl</param-value>
    </init-param> 
    <init-param>
<param-name>PATH</param-name>
<param-value>/usr/bin/perl</param-value>
    </init-param>  
    <init-param>
<param-name>ENV_PERL5LIB</param-name>
<param-value>SystemProperty name="jetty.home" default="."/>/webapps/change/WEB-INF/perl/:<Change-Install>/WEB-INF/perl/lib/perl5/site_perl/5.8.6:</param-value>
    </init-param>
<init-param>
<param-name>cgibinResourceBase</param-name>
<param-value>cgi-bin directory path</param-value>
</init-param>
 
</servlet>
     
<!-- Forward all URL's to the CGI servlet to handle -->
  <servlet-mapping>
    <servlet-name>CGI</servlet-name>
    <url-pattern>/cgi-bin/*</url-pattern>
  </servlet-mapping>  

dsteffen

unread,
Jul 18, 2014, 8:57:59 AM7/18/14
to synergy...@googlegroups.com
Hello,

the thread is maybe a little old but today I try to run a perl script over the cgi-bin-Interface of Change, but I only get the content of the file not the output. That's why i would like to ask did you change something else in the configuration, maybe a definition of the File-Extension, somewhere?
best regards
Dan
Reply all
Reply to author
Forward
0 new messages