Discussion:
Installing Python as Scripting Language in IIS
(too old to reply)
naugiedoggie
2010-08-31 01:55:20 UTC
Permalink
Hello,

Windows 2003, 64-bit, standard edition server with IIS 6.0. I
followed the MS instruction sheets on setting up CGI application with
Python as scripting engine. I'm just getting 404 for the test script,
whereas an html file in the same virtual directory is properly
displayed.

Here:

Creating Applications in IIS 6.0 (IIS 6.0)
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/bc0c4729-e892-4871-b8f3-fcbf489f2f09.mspx?mfr=true

Setting Application Mappings in IIS 6.0 (IIS 6.0)
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/bc0c4729-e892-4871-b8f3-fcbf489f2f09.mspx?mfr=true

I mapped the exe thus: c:\Python26\python.exe -u "%s %s"
to extension `py' for all verbs and checked the `script engine' box.

There are no errors in the script itself, i ran it from the command
line to be sure. Further, I enabled ASP and tried using python as the
scripting language. That generates this error:

<code>
Active Server Pages error 'ASP 0129'
Unknown scripting language
/cgi/index.asp, line 1
The scripting language 'Python' is not found on the server.
</code>

I can't find any good references for dealing with this, either.

I've dicked around with this for so long, now I don't know which way
is up, anymore.

Any thoughts on where I might be going wrong, much appreciated.

Thanks.

mp
h***@gmail.com
2010-08-31 20:41:19 UTC
Permalink
Post by naugiedoggie
Hello,
Windows 2003, 64-bit, standard edition server with IIS 6.0.  I
followed the MS instruction sheets on setting up CGI application with
Python as scripting engine.  I'm just getting 404 for the test script,
whereas an html file in the same virtual directory is properly
displayed.
Creating Applications in IIS 6.0 (IIS 6.0)http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Librar...
Setting Application Mappings in IIS 6.0 (IIS 6.0)http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Librar...
I mapped the exe thus:  c:\Python26\python.exe -u "%s %s"
to extension `py' for all verbs and checked the `script engine' box.
There are no errors in the script itself, i ran it from the command
line to be sure.  Further, I enabled ASP and tried using python as the
<code>
Active Server Pages error 'ASP 0129'
Unknown scripting language
/cgi/index.asp, line 1
The scripting language 'Python' is not found on the server.
</code>
I can't find any good references for dealing with this, either.
I've dicked around with this for so long, now I don't know which way
is up, anymore.
Any thoughts on where I might be going wrong, much appreciated.
Thanks.
mp
I had the same problem with Python 2.5 and IIS on Windows XP. I
wonder if using ActivePython would make any difference?
Michel Claveau - MVP
2010-09-01 06:23:00 UTC
Permalink
Hi!

You must register Python as ActiveScripting's language.
See : C:\Python26\Lib\site-packages\win32comext\axscript

@-salutations
--
Michel Claveau
Michel Claveau - MVP
2010-09-01 06:24:46 UTC
Permalink
Re !

More details:
C:\Python26\Lib\site-packages\win32comext\axscript\Demos\client\ie\demo.htm

@+
--
Michel Claveau

Continue reading on narkive:
Loading...