This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
xampp [2012/01/27 00:14] 127.0.0.1 external edit |
xampp [2021/05/21 00:04] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| How to add Python onto a xampp installation. | How to add Python onto a xampp installation. | ||
| - | Got this from [[http:// | + | Got this from: |
| + | - macouno.com' | ||
| + | - elvenware.com' | ||
| ===== Configuring the server ===== | ===== Configuring the server ===== | ||
| - | In the httpd.conf file for your apache installation (part of xampp) add the following all the way at the bottom. In my case the httpd.conf can be found here: C: | + | In the httpd.conf file for your apache installation (part of xampp) add the following all the way at the bottom. In my case the httpd.conf can be found here: '' |
| <file apache httpd.conf> | <file apache httpd.conf> | ||
| Line 15: | Line 18: | ||
| AddHandler cgi-script .py | AddHandler cgi-script .py | ||
| ScriptInterpreterSource Registry-Strict | ScriptInterpreterSource Registry-Strict | ||
| + | </ | ||
| + | |||
| + | or append " | ||
| + | |||
| + | <file apache httpd.conf> | ||
| + | AddHandler cgi-script .cgi .pl .asp .py | ||
| </ | </ | ||
| Line 22: | Line 31: | ||
| <file python> | <file python> | ||
| - | #!C:/Python26/python.exe | + | #!C:/Python27/python.exe |
| + | </ | ||
| + | |||
| + | or, | ||
| + | |||
| + | <file python> | ||
| + | # | ||
| </ | </ | ||