Configure PERL/CGI on SJSWS 7.0
I'm having some real issues getting PERL functionality on SJSWS 7.0. It won't even recognize cgi. I've followed all the steps of the setup. The error is odd and the same on Win2003 Server and XP Pro:
for host xxx.xxx.xx.xxx trying to GET /cgi-bin/test.cgi, send-cgi reports: HTTP4068: cannot execute CGI script c:/webserver7/https-kings/docs/cgi-bin/test.cgi (The specified program is not a Windows executable)
Windows Server 2003 - fully updated
Sun Java System Web Server 7.0 B12/04/2006 08:46
(Have CFMX 7 running with SJSWS 7.0 as well)
I've tried using the packaged PERLas well as ActiveState PERL 5.6.x with no luck.
Any help would be greatly appreciated
# 4
Not sure if this helps, but here are the conf files:
obj.conf
========================================================
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# You can edit this file, but comments and formatting changes
# might be lost when you use the administration GUI or CLI.
<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/WebServer7/lib/icons" name="es-internal"
PathCheck fn="nt-uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index-j2ee"
PathCheck fn=find-index index-names="index.html,home.html,index.jsp,index.cfm"
PathCheck fn="jrunfilter"
ObjectType fn=type-by-exp exp=*.jsp type="jrun-internal/ext"
ObjectType fn=type-by-exp exp=*.jws type="jrun-internal/ext"
ObjectType fn=type-by-exp exp=*.cfm type="jrun-internal/ext"
ObjectType fn=type-by-exp exp=*.cfml type="jrun-internal/ext"
ObjectType fn=type-by-exp exp=*.cfc type="jrun-internal/ext"
ObjectType fn=type-by-exp exp=*.cfr type="jrun-internal/ext"
ObjectType fn=type-by-exp exp=*.cfswf type="jrun-internal/ext"
ObjectType fn="type-j2ee"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method=(GET|HEAD|POST) type="jrun-internal/*" fn="jrunservice"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
Service method="TRACE" fn="service-trace"
Error fn="error-j2ee"
AddLog fn="flex-log"
</Object>
<Object name="j2ee">
Service fn="service-j2ee" method="*"
</Object>
<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>
<Object name="shellcgi">
ObjectType fn="force-type" type="magnus-internal/shellcgi"
Service fn="send-shellcgi"
</Object>
<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi"
</Object>
<Object name="send-precompressed">
PathCheck fn="find-compressed"
</Object>
<Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
</Object>
========================================================
instance_obj.conf
==============
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# You can edit this file, but comments and formatting changes
# might be lost when you use the administration GUI or CLI.
# Use only forward slashes in pathnames as backslashes can cause
# problems. Refer to the documentation for more information.
<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/WebServer7/lib/icons" name="es-internal"
NameTrans fn="home-page" path=""
PathCheck fn="nt-uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index-j2ee"
PathCheck fn="find-index" index-names="index.cfm,index.html,home.html,index.jsp"
PathCheck fn="jrunfilter"
PathCheck fn="set-cache-control" control="public"
ObjectType fn="type-by-exp" exp="*.jsp" type="jrun-internal/ext"
ObjectType fn="type-by-exp" exp="*.jws" type="jrun-internal/ext"
ObjectType fn="type-by-exp" exp="*.cfm" type="jrun-internal/ext"
ObjectType fn="type-by-exp" exp="*.cfml" type="jrun-internal/ext"
ObjectType fn="type-by-exp" exp="*.cfc" type="jrun-internal/ext"
ObjectType fn="type-by-exp" exp="*.cfr" type="jrun-internal/ext"
ObjectType fn="type-by-exp" exp="*.cfswf" type="jrun-internal/ext"
ObjectType fn="type-j2ee"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD|POST)" type="jrun-internal/*" fn="jrunservice"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service fn="append-trailer" type="text/html" timefmt="%B %d, %Y %I:%M" trailer=""
Service fn="shtml-send" type="magnus-internal/parsed-html" method="(GET|HEAD)"
Service fn="send-cgi" type="magnus-internal/cgi"
Service fn="send-shellcgi" type="magnus-internal/shellcgi"
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
Service method="TRACE" fn="service-trace"
Error fn="error-j2ee"
AddLog fn="flex-log"
</Object>
<Object name="j2ee">
Service fn="service-j2ee" method="*"
</Object>
<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>
<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi"
</Object>
<Object name="send-precompressed">
PathCheck fn="find-compressed"
</Object>
<Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
</Object>
<Object name="shellcgi">
ObjectType fn="force-type" type="magnus-internal/shellcgi"
Service fn="send-shellcgi"
</Object>
========================================================