AddOns unter allen XAMPP Versionen ????

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

AddOns unter allen XAMPP Versionen ????

Postby jweb » 09. January 2007 13:31

Hallo
Wenn ich mir die aktuelle Version 1.5.5 von XAMPP für Win dowloade, stehen darunter nur die Addons Perl und Tomcat !

Meine Frage!
Ist die Addon Funktionalität abhängig von der Versionsnummer von XAMPP? Oder kann ich mir auch das Python und die anderen Zusatz Addons runterladen, und unter 1.5.5 installieren bzw. in Vz kopieren und konfigurieren.
Ich sehe bei den Zusatz Addons keine Angaben wie : ab 1.5.3 usw.


THX
JWeb
jweb
 
Posts: 2
Joined: 09. January 2007 13:19

Postby deepsurfer » 09. January 2007 17:42

Du kannst es gerne Ausprobieren, ob die "älteren" Addons einwandfrei funktionieren.

Einige Addon Ersteller haben vor einiger Zeit ihre Arbeit eingestellt
und da haben User aus dem XAMPP-DEV bereich versucht zeitlich diese ADDONs weiter zu pflegen, was aber seit einiger Zeit nicht mehr klappt.

Wenn also bei dir ein Test zur Zufriedenheit abgeschlossen ist, so melde es hier. Dann kann Kai oder Kay die Versionsnummer in den Addons erhöhen.
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby bombaclaude » 10. January 2007 19:25

Mach es lieber von Hand. In meinem Perl Verzeichnis lag nur eine Datei. Ich habe Active Perl eingespielt. Mit dem PPM kannst Du dann bequem die CPAN Progrämmchen holen. Python brauchst due wahrscheinlich die v 2.4.3 ansonsten meckert der Apache v2.2.3. Security updates aber nicht vergessen.
bombaclaude
 
Posts: 11
Joined: 01. January 2007 14:27

Postby germareyam » 04. February 2008 12:01

Hallo,

das letzte AddOn war für Python 2.3.

Für neuere XAMPP- und Python-Versionen muß man leider alles von Hand konfigurieren:

One possibility is to install the Python stuff by hand. Following is the procedure:

1. Download the latest XAMPP (version 1.6.5) from http://www.apachefriends.de
or http://www.apachefriends.org and install it in the C:\xampp directory



2. Download Python 2.5.1 from http://www.python.org
and install it in the C:\Python25 directory



3. Download mod_python (version 3.3.1) from http://www.modpython.org
and install it.
Choose the C:\Python25 directory for the Python location
and C:\xampp\apache directory as the Apache location



4. Open the file C:\xampp\apache\conf\httpd.conf
and add the line

LoadModule python_module modules/mod_python.so

at the end of the other LoadModule lines

Also add the following lines
<Directory "C:/xampp/cgi-bin">
AddHandler mod_python .py
PythonHandler python
PythonDebug On
Order allow,deny
Allow from all
</Directory>



5. Stop and restart the Apache server with the XAMPP Control Panel
If the Apache server doesn't start you made an error in the file
C:\xampp\apache\conf\httpd.conf



6. Compile the the Python script TestPython.py (see bottom of this file) and
copy the file TestPython.pyc into the C:\xampp\cgi-bin directory

For compilation you can use the following script:

#!C:\Python25\python -u
# -*- coding: iso-8859-15 -*-

import cgi,cgitb,sys
from TestPython import *

class CompilePythonModules():
""" Compiles the needed Python modules. """

def __init__(self):
""" Constructor method. """
if __debug__:
cgitb.enable() # for CGI debugging
sys.stderr = sys.stdout


def _compile(self):
""" Compiles the needed modules. """
tstPython = TestPython()


# main program starts here
if __name__ == '__main__':
cPyMod = CompilePythonModules()
cPyMod._compile()


I don't know why one has to compile the Python scripts "by hand".

If I copy only the file TestPython.py then I get back the content of my python
script in the next step 7. I don't know the reason for this behaviour.
Under Linux the Apache server automatically compiles the Python script.
Maybe someone knows an answer for this strange bahaviour under Windows.
But my workaround works fine.



7. Enter the adress http://localhost/cgi-bin/TestPython.py into your web browser

Content of the script TestPython.py:

#!/usr/bin/python
# -*- coding: iso-8859-15 -*-

import cgi,cgitb,Cookie,sys

class TestPython():
""" Tests if the XAMPP Python Add-On and mod_python are properly installed. """

def __init__(self):
""" Constructor method. """
if __debug__:
cgitb.enable() # for CGI debugging
sys.stderr = sys.stdout


def _outputHTMLGreetingPage(self):
""" Outputs an HTML response to the browser. """
print "Content-type: ", "text/html"
print ""
print "<?xml version=1.1 ?>"
print '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"'
print '"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'
print '<html xmlns="http://www.w3.org/1999/xhtml">'
print " <head>"
print " <title>My window title</title>"
print " </head>"
print " <body>"
print " <h1>Congatulation, Python works!</h1>"
print " </body>"
print "</html>"


# main program starts here
if __name__ == '__main__':
test = TestPython()
test._outputHTMLGreetingPage()

Gruß
Gerhard Mayer
germareyam
 
Posts: 10
Joined: 18. January 2008 08:21
Location: D-89522 Heidenheim / Brenz

Postby schrecklich » 17. February 2008 21:37

Hallo,

ich habe deine Anweisungen versucht aber ich bekomme die folgende Message wenn ich http://localhost/cgi-bin/TestPython.py lade:

MOD_PYTHON ERROR

ProcessId: 5528
Interpreter: 'localhost'

ServerName: 'localhost'
DocumentRoot: 'C:/xampp/htdocs'

URI: '/cgi-bin/TestPython.py'
Location: None
Directory: 'C:/xampp/cgi-bin/'
Filename: 'C:/xampp/cgi-bin/TestPython.py'
PathInfo: ''

Phase: 'PythonHandler'
Handler: 'python'

Traceback (most recent call last):

File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1202, in _process_target
module = import_module(module_name, path=path)

File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 304, in import_module
return __import__(module_name, {}, {}, ['*'])

ImportError: No module named python

Ich bekomme keine Fehler wenn ich Apache beginne. Ich habe auch PythonTest.pyc "by hand" kompiliert mit Python.

Koenntest du eine auffaellende Fehler von mir bemerken? Ich benutze xampp 1.6.6, python 2.5 und mod_python 3.3.1

(entschuldige mein schlechtes deutsch!)
schrecklich
 
Posts: 1
Joined: 17. February 2008 21:25

Postby germareyam » 14. October 2008 10:10

Hallo schrecklich,

vermutlich hast Du vergessen mod_python downzuloaden und zu installieren.

mod_python gibt's unter http://www.modpython.org

Diese neueste Version funktioniert allerdings nur bis Python Version 2.5.1 (für neuere Python-Versionen gibt's noch kein angepasstes mod_python).

Nach den Änderungen an der httpd.conf - Datei muß der Apache-Server neu gestartet werden!

Gibt's dann immer noch Probleme, kann man im Apache-Log unter
C:\xampp\apache\logs\error.log nachschauen.

Gruß
GerMa
germareyam
 
Posts: 10
Joined: 18. January 2008 08:21
Location: D-89522 Heidenheim / Brenz

python_init: Python version mismatch

Postby germareyam » 15. October 2008 14:43

Hallo,

hier noch ein Hinweis: Sollte man die Meldung

"python_init: Python version mismatch"

im Apache-Log finden, so sollte man sich im der erste Zeile in den Python-Scripts vergewissern, ob die richtige Version verwendet wird, z.B.

#!C:\Python25\python.exe -u

oder

#!C:\Python26\python.exe -u

Gruß
germareyam
germareyam
 
Posts: 10
Joined: 18. January 2008 08:21
Location: D-89522 Heidenheim / Brenz


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 44 guests