http://www.apachefriends.org/en/xampp-windows.html#1176. The v 1.3 Python download on SourceForge (http://sourceforge.net/project/showfiles.php?group_id=104772&package_id=115213&release_id=369942) is just over a year old, which means it only works in a context of "stone knives and bearskins". Save yourself a load of grief and forget Xampp+Python.
NOTE: This is a copied post from the German-only XAMPP-addons forum.
I had a running XAMPP 1.5.4 (Windows, via Installer), which I upgraded to 1.5.4a with the upgrade Installer (http://www.apachefriends.org/download.php?xampp-win32-upgrade-1.5.4-1.5.4a-installer.exe)
Things were working. I downloaded and installed the Python addon (xampp-python-addon-2.3.5-installer.exe) from SourceForge and ran it. With the defaults, Apache refuses to start. The Python installer apparently appended this line to httpd.conf:"Include conf/extra/python.conf". The named file doesn't exist. There is a "conf/python.conf.new", so I copied that to "conf/extra/python.conf". The modules referenced by the LoadFile and LoadModule lines in python.conf file exist ("/xampp/python/python23.dll" and "/xampp/python/mod_python.so"), but those lines prevent apache from starting.
This may be irrelevant, but prior to this I did have ActiveState Python 2.4.3 installed in C:\Program files\ActiveState\python, and that dir is in PATH. The xampp addon python dir is not in PATH.
I tried copying the python23.dll file to xampp/apache/bin, and I also copied mod_python.so to apache/modules -- apache still doesn't start.
My only solution is to comment out everything in python.conf -- not a great solution.
Is there something I'm missing???
More info as of 31-oct-06
After reading http://community.apachefriends.org/f/viewtopic.php?t=20540, I ran Apache from the command line with this in the python.conf file:
- Code: Select all
LoadModule python_module "C:\Program Files\xampp\python\mod_python.so"
- Code: Select all
C:\Program Files\xampp\apache\bin>apache -e debug -k start -S -M -t
[Tue Oct 31 21:46:43 2006] [debug] mod_so.c(246): loaded module actions_module
[Tue Oct 31 21:46:43 2006] [debug] mod_so.c(246): loaded module alias_module
... etc ...
[Tue Oct 31 21:46:43 2006] [debug] mod_so.c(246): loaded module autoindex_color_module
[Tue Oct 31 21:46:43 2006] [debug] mod_so.c(325): loaded file bin/python23.dll
apache: Syntax error on line 146 of C:/Program Files/xampp/apache/conf/httpd.conf: Syntax error on line 9 of C:/
Program Files/xampp/apache/conf/extra/python.conf: Cannot load C:/Program Files/xampp/python/mod_python.so into
server: The specified procedure could not be found.
The file does exist
- Code: Select all
C:\Program Files\xampp\apache\bin>dir "C:\Program Files\xampp\python\mod_python.so"
Directory of C:\Program Files\xampp\python
03/11/2004 07:50 AM 81,920 mod_python.so
1 File(s) 81,920 bytes
0 Dir(s) 15,733,805,056 bytes free
Changing the python.conf to
- Code: Select all
LoadModule python_module modules/mod_python.so
yields similiar error
- Code: Select all
[Tue Oct 31 21:56:59 2006] [debug] mod_so.c(246): loaded module autoindex_color_module
[Tue Oct 31 21:56:59 2006] [debug] mod_so.c(325): loaded file bin/python23.dll
apache: Syntax error on line 146 of C:/Program Files/xampp/apache/conf/httpd.conf: Syntax error on line 8 of C:/
Program Files/xampp/apache/conf/extra/python.conf: Cannot load C:/Program Files/xampp/apache/modules/mod_python.
so into server: The specified procedure could not be found.
\C:\Program Files\xampp\apache\bin>dir "c:\Program Files\xampp\apache\modules\mod_python.so"
Directory of c:\Program Files\xampp\apache\modules
03/11/2004 07:50 AM 81,920 mod_python.so
1 File(s) 81,920 bytes
0 Dir(s) 15,733,805,056 bytes free
This may be irrelevant, but in Explorer, "file/properties" on "mod_python.so" shows (note lack of ".so" in names):
- File Version = 3.1.3
Internal Name = mod_python
Original file name = mod_python
Product Name = mod_python
Properties on other modules, for example "mod_alias.so" show Internal and File names of "mod_alias.so" (with ".so")[url][/url]