473,326 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

mod_python + apache + winxp => nogo

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
=============

After adding:
"LoadModule python_module modules/mod_python.so"

to apache's httpd.conf, apache refuses to start, saying:
"cannot load c:/<path>/mod_python.so into server: the specified module
could not be found"

'mod_python.so' is in the modules folder under apache, though.

I've searched everywhere, but could not find a solution. Anybody here
that has been successful in getting this combo to work?

Apr 7 '06 #1
9 4910
I've set up that combo several times. I haven't had any problems. I
just looked at apach.conf, it's the same line. Did you run the
mod_python-3.2.8.win32-py2.4.exe installer?

Apr 7 '06 #2

cyberco wrote:
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
=============

After adding:
"LoadModule python_module modules/mod_python.so"

I'm no expert - having never tried that combination (but I have heard
of it and you should try the mod_python mailing list).

However, if IIRC then a '.so' file is a UNIX type library file.
(Possibly the equivalent of a dll on windows). This sounds awry to me.

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
to apache's httpd.conf, apache refuses to start, saying:
"cannot load c:/<path>/mod_python.so into server: the specified module
could not be found"

'mod_python.so' is in the modules folder under apache, though.

I've searched everywhere, but could not find a solution. Anybody here
that has been successful in getting this combo to work?


Apr 7 '06 #3
cyberco wrote:
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
=============

After adding:
"LoadModule python_module modules/mod_python.so"

to apache's httpd.conf, apache refuses to start, saying:
"cannot load c:/<path>/mod_python.so into server: the specified module
could not be found"

'mod_python.so' is in the modules folder under apache, though.

I've searched everywhere, but could not find a solution. Anybody here
that has been successful in getting this combo to work?


Surely not *everywhere*, since a similar question was posed on the
mod_python mailing list just 3 days ago. ;)

For possible solutions see:
http://modpython.org/pipermail/mod_p...il/020770.html

Jim
Apr 7 '06 #4
Fuzzyman wrote:
cyberco wrote:
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
=============

After adding:
"LoadModule python_module modules/mod_python.so"

I'm no expert - having never tried that combination (but I have heard
of it and you should try the mod_python mailing list).

However, if IIRC then a '.so' file is a UNIX type library file.
(Possibly the equivalent of a dll on windows). This sounds awry to me.


It's an apache thing. Apache loadable modules have the same suffix on
all platforms, so mod_python.so is correct.

Jim
Apr 7 '06 #5
> to apache's httpd.conf, apache refuses to start, saying:
"cannot load c:/<path>/mod_python.so into server: the specified module
could not be found"


which probably means that mod_python.so is not in that directory?

Apr 8 '06 #6
Thanks Jim, I indeed did not look in the mailinglist archive (you have
to subscribe for that and Google didn't cache it yet).

The problem was indeed the missing .DLL's. After adding them to my
'PATH' variable apache was at least able to start. Unfortunately things
still don't work. When I try to load a .py file I get the error:

==============
[Sun Apr 09 14:03:46 2006] [error] make_obcallback: could not import
mod_python.apache.\n
[Sun Apr 09 14:03:46 2006] [error] python_handler: no interpreter
callback found.
[Sun Apr 09 14:03:46 2006] [error] [client 192.168.2.100]
python_handler: Can't get/create interpreter., referer:
http://myserver/test/
==============

This seems more like a bug in mod_python. Any suggestions?

Apr 9 '06 #7
cyberco wrote:
Thanks Jim, I indeed did not look in the mailinglist archive (you have
to subscribe for that and Google didn't cache it yet).

The problem was indeed the missing .DLL's. After adding them to my
'PATH' variable apache was at least able to start. Unfortunately things
still don't work. When I try to load a .py file I get the error:

==============
[Sun Apr 09 14:03:46 2006] [error] make_obcallback: could not import
mod_python.apache.\n
[Sun Apr 09 14:03:46 2006] [error] python_handler: no interpreter
callback found.
[Sun Apr 09 14:03:46 2006] [error] [client 192.168.2.100]
python_handler: Can't get/create interpreter., referer:
http://myserver/test/
==============
You are halfway there. Apache has found the mod_python loadable module,
but now *it* can't find the correct mod_python lib files. This may
happen when you have several different python versions installed on your
system, and mod_python is trying to use the wrong one. If this is the
case, adjust the path that apache sees so that the correct python
appears first in the path.
This seems more like a bug in mod_python.


Not a bug - unless you consider poor documentation a bug ;). Your
configuration is still not correct.

Any suggestions?

I'm not sure if our Windows guy reads c.l.p. on a regular basis and I'm
rather clueless about Windows issues. Subscribe to the mod_python
mailing list. You can always unsubscribe later. :).

Jim
Apr 9 '06 #8
Hi Jim,

Thanks, I'll sign up for the mailinglist, but to finish the story here:

- I only have one version of Python installed
- From the Python interpreter I can import the mod_python module just
fine
- At starup the Apache log states:
[Sun Apr 09 22:16:38 2006] [notice] Apache/2.0.55 (Win32)
mod_python/3.2.5b Python/2.4.2 configured -- resuming normal operations
[Sun Apr 09 22:16:38 2006] [notice] mod_python: Creating 8 session
mutexes based on 0 max processes and 250 max threads.

Cheers,
cyberco

Apr 9 '06 #9
yep

Apr 9 '06 #10

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

Similar topics

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...
1
by: wolf | last post by:
i would like to briefly share my experiences with installing mod_python on a w2000 box. i must say that i believe the installation process to be unnecessarily complicated by the simple fact that...
3
by: Nancy | last post by:
Hi, I am new to python. I am trying to install mod_python in my computer(WinXP Pro, Apache 2.0.50, python2.3.4). I added the following statements in my Apache configuration file httpd.conf ...
0
by: Julien Cigar | last post by:
Hello, I'm using mod_python 3.1.3 with Apache 2.0.54 on a Debian box with the publisher handler and the Clearsilver template engine, and from time to time apache returns an 500 error code...
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
1
by: Tama | last post by:
Hello, I've didn't find any answer to my problem so I start a new topic. I have installed Apache 1.3.33 on Windows XP. I've also downloaded and installed ActivePython form...
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...
2
by: m.banaouas | last post by:
I installed Apache 2.2.3 and mod_python 3.2.10 on WinXP plateform I configured mod_python via httpd.conf: LoadModule python_module modules/mod_python.so but my script folder configuration...
1
by: liecto | last post by:
winxp sp2 modpython 3.3.1 apache 2.2.4 python 2.5 when i start apache ,it failed. and the error is ============== The Apache service named reported the following error: ===============
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.