User Tools

Site Tools


xampp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
xampp [2011/06/01 20:07] – created dblumexampp [2023/04/12 20:44] (current) – external edit 127.0.0.1
Line 3: Line 3:
 How to add Python onto a xampp installation. How to add Python onto a xampp installation.
  
-Got this from [[http://www.macouno.com/2010/03/17/getting-python-to-work-on-xampp/]]+Got this from
 +  - macouno.com'[[http://www.macouno.com/2010/03/17/getting-python-to-work-on-xampp/|Getting python to work on Xampp]] 
 +  - elvenware.com's [[http://www.elvenware.com/charlie/development/web/Python/Xampp.html|Running Python Scripts on Windows with Apache and Xampp]] 
  
 ===== 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:\xampp\apache\conf+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:\xampp\apache\conf''
  
 <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
 +</file>
 +
 +or append ".py" to the existing ''Addhandler'' command where it is:
 +
 +<file apache httpd.conf>
 +AddHandler cgi-script .cgi .pl .asp .py
 </file> </file>
  
Line 22: Line 31:
  
 <file python> <file python>
-#!C:/Python26/python.exe+#!C:/Python27/python.exe 
 +</file> 
 + 
 +or, 
 + 
 +<file python> 
 +#!/Python27/python
 </file> </file>
  
xampp.1306984059.txt.gz · Last modified: 2023/04/12 20:44 (external edit)