lamp

Running Python 3 extensions on IIS 6

Published 28 May 09 12:19 AM | Frederick.Chapleau

Python files can be run, without using Iron Python on IIS.

The first step is to install... Python 3.

After that you must enable the extension by going to Web Service Extensions and Allowing “All unknown CGI Extensions”

Third and last step, is a modified version of the MS Article... that date back to 2006.

Verify that application mapping for .py files is set up. To do this, perform the following steps:

  1. In the ISM, under Internet Information Server, right-click the computer name, and then click Properties.
  2. From the Master Properties drop-down list, click WWW Service and then click Edit.
  3. Click the Home Directory tab, and then click Configuration.
  4. To add the application mapping, click Add, and then create a new mapping by using the following information (substituting the correct path on your computer):
    • Executable: "C:\Python3\python.exe” %s %s (The two "%s" after the executable are required for console-based script interpreters but would not be required for an Internet Server API [ISAPI]-based script interpreter).
    • Extension: .py
    • Script engine: selected.
    • Check that File Exists: selected (for security) Click OK.

 

-f.

Filed under:

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Protected by FormShield
Refresh
Listen
Please enter the characters shown on the image


Code: