I
Ido Yehieli
Hi all,
I have succesfully installed apache+mod_python (ubuntu 5.10
(Breezy),
libapache2-mod-python2.4 Version: 3.1.3-3ubuntu1,
apache2 Version: 2.0.54-5ubuntu4,
python2.4 Version: 2.4.2-1).
It seems apache and everything functions fine. I tried to run the
example application from the mod_python site
(http://www.modpython.org/examples/psp_site.tgz) by decompressing the
tgz file in a place where apache can find it, and then access it via
mozilla firefox (simply http://127.0.0.1/psp_site/ where 'psp-site' is
the name of the directory.)
However, instead of running the index.py page like it shoud, I just get
the list of files, as in:
Index of /psp_site
Icon Name Last modified Size Description[DIR]
Parent Directory -
[TXT] PyFontify.py 15-Feb-2006 23:02 4.3K
[DIR] images/ 15-Feb-2006 23:02 -
[TXT] index.py 15-Feb-2006 23:02 3.4K
[ ] index.pyc 15-Feb-2006 23:02 4.1K
[TXT] py2html.py 15-Feb-2006 23:02 13K
[DIR] styles/ 15-Feb-2006 23:02 -
[DIR] templates/ 15-Feb-2006 23:02 -
[TXT] view.py 15-Feb-2006 23:02 726
and clicking any of the .py files just opens the 'open/save' menu. The
..htaccess file contains:
SetHandler mod_python
PythonHandler mod_python.publisher
PythonDebug On
everything is exactly as it is on "http://www.modpython.org/examples/",
I didn't change anything.
Anyone has any idea as to what went wrong?
Thank you in advance,
Ido Yehieli.
I have succesfully installed apache+mod_python (ubuntu 5.10
(Breezy),
libapache2-mod-python2.4 Version: 3.1.3-3ubuntu1,
apache2 Version: 2.0.54-5ubuntu4,
python2.4 Version: 2.4.2-1).
It seems apache and everything functions fine. I tried to run the
example application from the mod_python site
(http://www.modpython.org/examples/psp_site.tgz) by decompressing the
tgz file in a place where apache can find it, and then access it via
mozilla firefox (simply http://127.0.0.1/psp_site/ where 'psp-site' is
the name of the directory.)
However, instead of running the index.py page like it shoud, I just get
the list of files, as in:
Index of /psp_site
Icon Name Last modified Size Description[DIR]
Parent Directory -
[TXT] PyFontify.py 15-Feb-2006 23:02 4.3K
[DIR] images/ 15-Feb-2006 23:02 -
[TXT] index.py 15-Feb-2006 23:02 3.4K
[ ] index.pyc 15-Feb-2006 23:02 4.1K
[TXT] py2html.py 15-Feb-2006 23:02 13K
[DIR] styles/ 15-Feb-2006 23:02 -
[DIR] templates/ 15-Feb-2006 23:02 -
[TXT] view.py 15-Feb-2006 23:02 726
and clicking any of the .py files just opens the 'open/save' menu. The
..htaccess file contains:
SetHandler mod_python
PythonHandler mod_python.publisher
PythonDebug On
everything is exactly as it is on "http://www.modpython.org/examples/",
I didn't change anything.
Anyone has any idea as to what went wrong?
Thank you in advance,
Ido Yehieli.