Mhtml
02-16-2003, 01:27 PM
I didn't work after my first re-boot so I turned it off and whent to bed, today I came home from school booted up my pc and it worked.
For those who wish to run python on their pws it is relatively simple.
1. If you don't have it, get python (http://www.python.org)
2. Open regedit. (Start > run > "regedit")
3. Navigate to...
HKEY_LOCAL_MACHINE
SYSTEM
W3SVC
Parameters
ScriptMap
4. After selecting the ScriptMap folder right click in the right pane to bring up a context menu.
5. Choose "New > String Value"
6. Call it ".cgi"
7. Once created double click the newly created .cgi value to open up a modify window.
8. Enter the path to the python.exe followed by %s %s
Example:
"c:\python22\python.exe %s %s"
9. Close regedit
10. Restart computer
11. Anything with a .cgi extension in a script (executable) shared folder in PWS/IIS will be executed with python.
To make a folder a script (executable) folder just check "execute" and "script" checkboxes in it's iis/pws shared properties.
:)
I'm trying to run python cgi scripts on my PWS but it just won't work.
I've added the registry entry and stuff that results from google told me to do, at the moment it gives me a internal 500 error or something (which means it's trying to execute).
I was going to search this category but since you aren't allowed to have words under 4 letters I couldn't, my search would have been "how to run cgi on pws" :mad: I think I'll post in feedback on that topic...
Anyways TIA!
For those who wish to run python on their pws it is relatively simple.
1. If you don't have it, get python (http://www.python.org)
2. Open regedit. (Start > run > "regedit")
3. Navigate to...
HKEY_LOCAL_MACHINE
SYSTEM
W3SVC
Parameters
ScriptMap
4. After selecting the ScriptMap folder right click in the right pane to bring up a context menu.
5. Choose "New > String Value"
6. Call it ".cgi"
7. Once created double click the newly created .cgi value to open up a modify window.
8. Enter the path to the python.exe followed by %s %s
Example:
"c:\python22\python.exe %s %s"
9. Close regedit
10. Restart computer
11. Anything with a .cgi extension in a script (executable) shared folder in PWS/IIS will be executed with python.
To make a folder a script (executable) folder just check "execute" and "script" checkboxes in it's iis/pws shared properties.
:)
I'm trying to run python cgi scripts on my PWS but it just won't work.
I've added the registry entry and stuff that results from google told me to do, at the moment it gives me a internal 500 error or something (which means it's trying to execute).
I was going to search this category but since you aren't allowed to have words under 4 letters I couldn't, my search would have been "how to run cgi on pws" :mad: I think I'll post in feedback on that topic...
Anyways TIA!