Whew that was frustrating!!! Got there in the end though - no thanks to
Microsoft's (poor) GUI functionality.
Yes it is a question of matching the command lines in the Mapping
Application extension dialog and the added web server extension
definition. However the IIS Manager GUI for adding a web server
extension will not let you enter parameters for command line.
So more manual methods are required!
Here are the steps needed:
1. In the Applications mapping tab:
.jhp
"C:\Program Files\j601\jconsole.exe" web/jhp/run %s %s
2. Stop IIS using NET STOP IISADMIN /Y
3. open %windir%\system32\inetsrv\metabase.xml in text/xml editor
4. search for WebSvcExtRestrictionList
5. after the line:
0,*.exe
Enter the following line all on one line (watchout for email splitting
it)
1,C:\Program Files\j601\jconsole.exe web/jhp/run %s %s,1,JHP,J
Hypertext Processor
6. save metabase.xml
7. Start IIS again using NET START W3SVC
8. In the IIS Manager check that J Hypertext Processor is now defined
and allowed and that All unknown CGI Extensions is prohibited.
9. Hopefully IIS 6.0 should now serve .jhp files fine.
There are variations of this that will work too. For example it seems to
me that you can enclose any of the parameters to jconsole.exe in quotes
or not, the key is that the treatment of them must match exactly in both
places (and that when you're enclosing a parameter in the xml file in
quotes, you need to use $quot; instead of "). In contrast, whereas you
need to enclose the full filename to jconsole.exe in quotes in the
Application Mapping tab, you shouldn't enclose it in quotes in the xml
file.
I found the information on the following web pages helpful:
http://blogs.msdn.com/david.wang/archive/2005/04/20/IIS6-CGI-Web-Service
-Extension.aspx
http://groups-beta.google.com/group/microsoft.public.inetserver.iis/brow
se_thread/thread/ad1640e7faa396fe/eb4715329b7f6cef?q=plusrun.exe&rnum=4#
eb4715329b7f6cef
> [mailto:[EMAIL PROTECTED] On Behalf Of Oleg Kobchenko
> This thread (bottom) suggests that defining new extension,
> you need to provide path with "%s" %s EXACTLY like in
> document definition for jhp file extension.
>
> http://www.calendarscript.com/support/forum/Forum2/HTML/000659.html
>
> Please try to see if it works with All Unknown CGI off.
> --- Oleg Kobchenko <[EMAIL PROTECTED]> wrote:
> >
> > (Note: the link below is followed from JHP Configuration page).
Yes I noted that below!
> > --- "Sherlock, Ric" <[EMAIL PROTECTED]> wrote:
> >
> > > Just thought I should report my experiences trying to get JHP
> > > working on a Windows 2003 server.
> > >
> > > I kept on getting a 404 error for any JHP pages but static HTML
> > > pages were being served fine.
> > > Followed the link http://support.microsoft.com/kb/245225 for
> > > configuring Perl scripts provided on the JHP
> configuration page and
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm