[[xampp]]
 

Differences

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

Link to this comparison view

xampp [2012/01/27 00:14]
127.0.0.1 external edit
xampp [2014/07/27 17:13] (current)
dblume
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's [[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.txt · Last modified: 2014/07/27 17:13 by dblume
 
Recent changes RSS feed Driven by DokuWiki