Appboard/2.4/admin/enabling cgi: Difference between revisions
imported>Jason.nicholls |
imported>Jason.nicholls |
||
Line 26: | Line 26: | ||
* CGI files should be placed into <tt>[INSTALL_HOME]/server/webapps/enportal/WEB-INF/cgi/</tt> | * CGI files should be placed into <tt>[INSTALL_HOME]/server/webapps/enportal/WEB-INF/cgi/</tt> | ||
* URL to access CGIs: <tt>[http://localhost:8080/enportal/cgi-bin/sample.cgi /enportal/cgi-bin/''sample.cgi'']</tt> | * URL to access CGIs: <tt>[http://localhost:8080/enportal/cgi-bin/sample.cgi /enportal/cgi-bin/''sample.cgi'']</tt> | ||
For more information on CGI in Tomcat please refer to the [http://tomcat.apache.org/tomcat-7.0-doc/cgi-howto.html Tomcat CGI How To] documentation. |
Revision as of 05:58, 19 September 2013
AppBoard runs on an Apache Tomcat server that can be configured to run CGI scripts.
Steps to Enable CGI
- Edit [INSTALL_HOME]/server/conf/web.xml
- uncomment the CGI servlet section, lines 333 through 347
- uncomment the CGI servlet-mapping section, lines 381 through 386
- save changes.
- Edit [INSTALL_HOME]/server/conf/context.xml
- add the parameter privileged="true" to the <Context ... > tag on line 19.
- save changes.
- create the directory [INSTALL_HOME]/server/webapps/enportal/WEB-INF/cgi
- Restart AppBoard.
Additional Information
The default CGI options are as follows:
- CGI interpreter is the system perl. To change this it's necessary to modify the CGI servlet section and set the executable parameter.
- CGI files should be placed into [INSTALL_HOME]/server/webapps/enportal/WEB-INF/cgi/
- URL to access CGIs: /enportal/cgi-bin/sample.cgi
For more information on CGI in Tomcat please refer to the Tomcat CGI How To documentation.