473,473 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

apache mod_python problem

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.

Feb 15 '06 #1
5 1397
Ido Yehieli schrieb:
[...]
Anyone has any idea as to what went wrong?
[...]


If you compiled mod_python as a Dynamic Shared Object (DSO) you have to
tell Apache to load that module. For example like this:

LoadModule python_module libexec/mod_python.so

See the mod_python documentation, especially the Configuring Apache section:

http://modpython.org/live/current/do...checonfig.html

Bye,
Dennis
Feb 15 '06 #2
Thank you for your response,
but I think it's not it - that didn't make any difference.

Feb 15 '06 #3

Ido Yehieli wrote:
Thank you for your response,
but I think it's not it - that didn't make any difference.


Suggest you read:

http://www.dscpl.com.au/articles/modpython-001.html

It contains helpful hints for getting a basic handler working
in mod_python. If you can get that working, then try something
harder.

You are also better off asking mod_python questions on the
mod_python mailing list. See www.modpython.org home page
for how to get on mailing list.

Graham

Feb 16 '06 #4
Hi Graham, thank you for that link but it didn't help.
I've followed the instructions, yet In the 'basic-content-handler'
section, after getting to the point where it says to add this to the
main Apache configuration file:

<Directory /some/directory>
AllowOverride FileInfo
</Directory>

I replaced /some/directory with the correct directory and restarted
apache2 and stilll get the same response - firwfox asks to save the
response to a file. Does it matter where in the apache2 configuration
file I've located these 3 lines? I've just added them at the end, just
before the last line: </VirtualHost>

Thank you in advance,
Ido.

Feb 16 '06 #5
please ignore that last message, the instructions on that webpage
worked, it was my fault.

Thanks,
Ido.

Feb 16 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: John Dean | last post by:
Hi I have set up httpd.conf according to installation and configuration instructions in the mod_python documentation. Yet when I enter the following URL http://localhost/test.py all I get is an...
1
by: Rolfe | last post by:
Hi, I struggled, and got mod_python running on Apache/Win2k. Follow these instructions verbatim and you shouldn't have any trouble. These instructions are based on...
6
by: Piet | last post by:
Hi there, I cannot install mod_python v3.1.3 on either Win2k/ActivePython 2.3.2 or WinMe/Python 2.3.4. When I run the Windows installer, I get the following error message: Traceback (most recent...
2
by: digidalmation | last post by:
Hello all. I've been trying to get my linux server to run mod_python. It's a Mandrake 10 linux box, and apache/mod_python are installed from rpms. apache2-mod_python-2.0.48_3.1.3-1mdk...
1
by: neha | last post by:
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using...
9
by: cyberco | last post by:
And I thought this would be trivial...getting mod_python to run within apache on windows XP. ============= mod_python 3.2.8 apache 2.0.55 python2.4 winxp =============
5
by: m.banaouas | last post by:
Hi, bonjour, witch versions are suitable to use for apache & mod_python ? Can i install and use "Apache 2.2.3" & "mod_python 3.2.10" (most recent versions) without facing any known major...
1
by: wadacom | last post by:
I'm sorry to take your time for newbie problems but I've been searching what to do about the problem with my apache server I have. I work with ubuntu dapperdrake I put the last apache server on it...
3
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added <Directory...
1
by: NccWarp9 | last post by:
Hello, im using Apache HTTPD 2.2.8 with mod_python/3.3.1 Python/2.4.3 on Windows and having truble starting pythone, any help would be appreciated .. Im getting this error: ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.