I am trying to install mod_wsgi for deploying a django project on a
client's machine, unfortunately however the client's configuration is
*silly* (I'm trying to find the politest term) and I'm having a hard
time installing mod_wsgi module.

Here are the currently installed software:

- Opensuse 10.2 x86-64 (not supported at the moment, but I have been
to find a repo)
- They installed their current server using xampp (This is a nonsecure
lampp distribution mainly for windows folks, but for some reason they
decided to install this in /opt) : 32 bits I guess (I did ldd on the
modules, and no 64 bit stuff came)
- Python: 64 bits, but there is a package python-32bit which I guess
installs some 32 bit libraries (no 32 bit binaries though)

Now, with some luck, I have actually been able to somehow install
virtualenv, django etc. and development server built in Django works.
The final task was installing mod_wsgi.

1. I downloaded mod_wsgi, xampp's dev, prefixed ./configure --with-
apxs=/opt/lamp/apache/bin/apxs and it compiled. I copied the mod_wsgi
into /opt/lampp/modules directory, added a WSGI line in httpd.conf and
restarted the apache server.

The error was: "httpd: Syntax error on line 125 of /opt/lampp/etc/
httpd.conf: Cannot load /opt/lampp/modules/mod_wsgi.so into server: /
opt/lampp/modules/mod_wsgi.so: wrong ELF class: ELFCLASS64"

2. I edited the Makefile so that /usr/lib64 was /usr/lib, hoping to
get a 32 bit one. Still the same error.

3. I have a 32-bit Ubuntu machine, with python2.6 installed. I
compiled the module, copied to the SuSe machine, I ldd'd the module,
saw that it required /lib/libpython2.6, made a soft link to
libpython2.6 from libpython2.5, restarted Apache, this time Apache
loaded, however the site didn't respond and in the error.log; it said
something like "import os" no module named os.


So, is there any way to compile mod_wsgi as a 32 bit module that can
interact with the 64-bit python? Or any other way to get around this
issue? They don't want to replace xampp as it might *break* things.

Kind regards,

Ustun



-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to