Added python, works but seems to be caching 1st script run

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Added python, works but seems to be caching 1st script run

Postby freeversed » 19. July 2012 19:48

TL;DR I think my python install in XAMPP is somehow caching stuff, I only see the same hello world message no matter what py script I run.

Setup details are below. I've used XAMPP plenty of times over the years on lots of local machines for testing and playing with scripting and OS software, but I'm new to all things python.

I installed python to play with some OS stuff in python, used this tutorial:

So it ran the test script fine and printed the wonderful "Hello World!" message we all love to see. The problem is that now, no matter what I do in a script or what else I try to run all that appears in the browser is "Hello World!". Even if I change the original script to print "Hello World!xyz" it does not change. I've restarted Apache, I've rebooted the computer. I added some stuff to http.conf to turn off any caching, all to no avail.

Code: Select all
<Directory "D:/xampp/htdocs">
        AddHandler mod_python .py
        PythonHandler mptest
   PythonPath "['D:/xampp/htdocs/test']+sys.path"
        PythonDebug On
   # set headers to prevent caching for anything in this directory
   Header set Pragma "no-cache"
   Header set Cache-Control "no-cache"
   Header set Expires "-1"

The setup:

###### ApacheFriends XAMPP (Basispaket) version 1.7.4 ######

+ Apache 2.2.17
+ MySQL 5.5.8 (Community Server)
+ PHP 5.3.5 (VC6 X86 32bit) + PEAR
+ XAMPP Control Version 2.5 from
+ XAMPP Security
+ SQLite 2.8.15
+ OpenSSL 0.9.8o
+ phpMyAdmin 3.3.9
+ ADOdb 5.11
+ Mercury Mail Transport System v4.62
+ FileZilla FTP Server 0.9.37
+ Webalizer 2.01-10
+ Zend Optimizer 3.3.0
+ Perl 5.10.1
+ Mod_perl 2.0.4
+ Tomcat 7.0.3

Python mod_python/3.3.1 Python/2.5.4
Windows 7
User avatar
Posts: 1
Joined: 19. July 2012 19:16
Operating System: Windows 7

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 28 guests