2009/3/20 Naitik Shah <[email protected]>: > I had some issues with Python pre 2.6 because of how different the MacPorts > Python build used to be. Since 2.6 though, its been working like a charm. > The MacPorts apache also has a eventmpm variant.
That said, it is worth highlighting that the supplied Apache with MacOS X is prefork MPM, thus you will definitely want to use mod_wsgi daemon mode for your WSGI applications unless you have a very specific need to use embedded mode, in which case though you are going to have to tune the Apache MPM settings based on size of your application and how much memory you have available. Graham > -Naitik > > On Thu, Mar 19, 2009 at 3:27 PM, Graham Dumpleton > <[email protected]> wrote: >> >> In general I don't recommend the use of MacPorts stuff as it has a >> habit of opening up a world of pain. Some of these problems are >> described in: >> >> http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX >> >> So, unless you have a specific reason that you cannot use the versions >> of Python and Apache that ship with MacOS X stuff, I would stick with >> the Apple stuff and just compile mod_wsgi from source code. >> >> Maybe for mod_wsgi 2.4/3.0 I will consider a dmg/pkg installer for MacOS X >> 10.5. >> >> Graham >> >> 2009/3/20 Naitik Shah <[email protected]>: >> > If you use MacPorts, this might help: >> > -- BEGIN -- >> > PortSystem 1.0 >> > name mod_wsgi >> > version 2.3 >> > categories www python >> > platforms darwin >> > maintainers [email protected] >> > description Python WSGI adapter module for Apache. >> > long_description The aim of mod_wsgi is to implement a simple to use >> > Apache >> > \ >> > module which can host any Python application which supports the >> > Python >> > WSGI \ >> > interface. The module would be suitable for use in hosting high >> > performance \ >> > production web sites, as well as your average self managed personal >> > sites \ >> > running on web hosting services. >> > homepage http://www.modwsgi.org/ >> > master_sites http://modwsgi.googlecode.com/files/ >> > checksums md5 c686e1c498dbe5753fe491c3cf61cff4 >> > depends_lib port:apache2 port:python26 >> > configure.cppflags-append \ >> > "-I${prefix}/include/python2.6" >> > configure.ldflags-append \ >> > "-Wl,-F${prefix}/Library/Frameworks" >> > configure.args \ >> > --with-apxs=${prefix}/apache2/bin/apxs \ >> > --with-python=${prefix}/bin/python2.6 >> > destroot.violate_mtree yes >> > pre-destroot { >> > xinstall -d -m 755 ${destroot}${prefix}/apache2/modules >> > } >> > post-install { >> > ui_msg "########################################################" >> > ui_msg "# To enable mod_wsgi add" >> > ui_msg "# LoadModule python_module modules/mod_wsgi.so" >> > ui_msg "# to your apache2 config file:" >> > ui_msg "# ${prefix}/apache2/conf/httpd.conf" >> > ui_msg "########################################################" >> > } >> > -- END -- >> > >> > -Naitik >> > On Thu, Mar 19, 2009 at 2:23 PM, Gnarlodious >> > <[email protected]> >> > wrote: >> >> >> >> Hi there. I have a PPC Xserve OSX 10.5 all freshly installed. I want >> >> to run Python with WSGI, but have not found any clear instructions how >> >> to install it. Sorry I don't know much about this stuff, only Apache. >> >> If someone can explain more concisely I would appreciate it, and post >> >> the procedure on my site. >> >> >> >> Thanks. >> >> >> >> -- Gnarlie >> >> http://Gnarlodious.com/ >> >> >> >> >> > >> > >> > > >> > >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
