Your comment on
| Page 1 of 3 total pages |
Montag, 21 April 2008
mod_wsgi on leopard
as all other modules for the standard apache installation on leopard the mod_wsgi module must be compiled as 64-bit module too.
Note that the newer versions of mod_wsgi 2.0c4 and above work out of the box. No need to patch anything. Thanks to Graham Dumpleton!
So the below instructions to patch the older versions are obsolete from now on, but still I leave them in place, as they may give hints for other purposes.
In order to do so, patch the installer:
(or, if you are adventurous, like me)
tar -xzf mod_wsgi-1.2.tar.gz cd mod_wsgi-1.2
tar -xzf mod_wsgi-2.0c2.tar.gz cd mod_wsgi2.0c2
now patch MakeFile:
make && sudo make install
now edit your apache config file (sudo nano /etc/apache2/httpd.conf) in order to load mod_python add (or uncomment) the following line:
LoadModule wsgi_module libexec/apache2/mod_wsgi.so
You can check the architecture of your mod_wsgi module in the terminal with:
It should return the following result:
/usr/libexec/apache2/mod_wsgi.so: Mach-O universal binary with 3 architectures /usr/libexec/apache2/mod_wsgi.so (for architecture ppc7400): Mach-O bundle ppc /usr/libexec/apache2/mod_wsgi.so (for architecture i386): Mach-O bundle i386 /usr/libexec/apache2/mod_wsgi.so (for architecture x86_64): Mach-O 64-bit bundle x86_64Comments:
Tuesday, 18.December 2007 04:42:45 Graham Dumpleton wrote:
Farbflash trac projects
If one of the open source examples on this page helped you to get a paid job delivered, you might want to contribute and support my work by donating via PayPal...