On 16 December 2011 02:50, Martijn Moeling <[email protected]> wrote:
> Hi,
>
> I have installed mwsgi on my macbbook pro for development purposes, I use all
> the default installations shipped with Lion.
> (Besides mySQL)
>
> My production system has been based on CentOs for several years, for so long
> that it is still running mod_python.
> (My application is compatible with mod_python and mod_wsgi due to the use of
> mp2wsgi)
>
> Now I have bought a Mac-Mini as a server for pre production tests (amongst
> some other stuff), where I will run my Application as I do on my macbook with
> minor differences. Like using the Postgres database
> (I'm using SQLAlchemy, it's a breeze).
>
> On this mac mini, I have Lion Server installed and I do not really need Xcode
> on it.
> I have been searching (Maybe in the wrong places) for a "manual" installation
> of mod_wsgi based on the compiled version running on my mbpro.
>
> Can someone help me out getting mod_wsgi running correctly on my Mac Mini
> Lion Server based on the binaries taken from my mbpro?
>
> I am used having a compiler on my CentOs Box but I want to get rid of
> development stuff from production machines.
>
> (I am running a huge project where I need tons of pre configured worker
> computers running behind a load balancer just with apache and mod_wsgi and
> very little else since I do not use any
> These workers will network boot from a minimal default installation image,
> this is just a preparation for that)
>
> My software is absolutely platform independent and runs on everything
> supported by apache and mod_wsgi (although tested I will never ever use any
> OS produced in Redmond)
>
> Is it just copying the mod_wsgi.so from someplace to the same location on the
> other box? (configuring apache is not the issue here)
If using Apple supplied Apache and layout is same as Snow Leopard,
then should be matter of just copying mod_wsgi.so to:
/usr/libexec/apache2/mod_wsgi.so
and then configuring Apache with LoadModule line and application
specific mod_wsgi configuration.
Once copied to the box you might just run:
otool -L /usr/libexec/apache2/mod_wsgi.so
to make sure it can resolve full path to dependent frameworks/libraries.
On Snow Leopard get :
$ otool -L /usr/libexec/apache2/mod_wsgi.so
/usr/libexec/apache2/mod_wsgi.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.2.11)
/System/Library/Frameworks/Python.framework/Versions/2.6/Python
(compatibility version 2.6.0, current version 2.6.1)
Not sure what it will be for Lion as haven't upgraded yet.
Graham
--
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.