473,770 Members | 6,091 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mod_python + apache + winxp => nogo

And I thought this would be trivial...getti ng 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 4930
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...getti ng 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...getti ng 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...getti ng 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.apac he.\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.apac he.\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
2870
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 "http://www.modpython.org/live/current/doc-html/inst-testing.html". I've added specific information such as Windows filepaths and filenames so there's no ambiguity on what you should do. I encourage you to copy and paste to avoid typing errors. Cheers, Rolfe
1
2291
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 the installer itself seems to be buggy -- in my case, no combination of mod_python 3.0.4, 3.1.2b and python 2.2.3, 2.3.3 ever came to completion. rather, the installer would exit -- after an initial declaration of having successfully found python...
3
2451
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 <Directory "C:/Apache Group/Apache2/htdocs/python"> AddHandler python-program .py PythonHandler myscript </Directory>
0
1607
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 (Internal Server Error). Apache errog.log file looks like : PythonHandler mod_python.publisher: Traceback (most recent call last): PythonHandler
1
4360
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): req.content_type = 'text/plain' req.write("Under Construction")
1
3331
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 http://www.activestate.com/. Then I went to http://www.modpython.org/ and search how to use python script with my web pages. I've tried all the version of mod_python under 2.7.11. As I'm under Windows XP, I can only install
5
3118
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 issue ? thanks for any help.
2
3233
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 doesn't work correctely: Alias /myfolder D:/myfolder <Directory "/myfolder"> Order allow,deny
1
2143
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
9432
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10008
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9873
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8891
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7420
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6682
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.