OpenSolaris with mod_wsgi

mod_wsgi is already packaged for OpenSolaris 2008.11 by the Roboporter, but it is in a package repository that is not enabled by default (the pending and contrib repositories).  These repositories provide many more packages than the standard release repository.

Below is the default repository:

$  pkg authority
AUTHORITY                           URL
opensolaris.org (preferred)         http://pkg.opensolaris.org/release/


In order to get mod_wsgi on OpenSolaris, we need to enable the pending repository.

$ pfexec pkg set-authority -O http://pkg.opensolaris.org/pending pending

We can now see the pending repository show up:

$  pkg authority
AUTHORITY                           URL
pending                             http://pkg.opensolaris.org/pending/
opensolaris.org (preferred)         http://pkg.opensolaris.org/release/

 

Now if we refresh the list

$  pfexec pkg refresh

 

we can install mod_wsgi

$  pfexec pkg install mod-wsgi

We should now see the library in /usr/apache2/2.2/libexec/mod_wsgi.so.

The final step is to create a configuration file so that Apache knows what to do.   The modwsgi.org website has comprehensive information on getting started.



Comments:

Will mod_wsgi be included in future releases of webstack for solaris ?

Posted by Flo on March 08, 2009 at 03:14 AM PDT #

Yes, mod_wsgi should be included directly in future releases of Web Stack after version 1.5.

Posted by Brian Overstreet on March 09, 2009 at 06:19 AM PDT #

Thanks for the info.
It was quite easy to compile and integrate it myself, but the luxury of having it included is nice. I only ran into one problem.
When I used certain multi-threaded python applications under mod_wsgi I got problems on the ssl server with enabled:
SSLCryptoDevice pkcs11

So I disabled that option for now.

Is there any easy way to contribute to Webstack / Opensolaris when I am on Solaris?

Posted by Flo on March 14, 2009 at 02:21 AM PDT #

To contribute to Webstack from Solaris, I would recommend getting the source code as described at http://opensolaris.org/os/project/webstack/sunwebstack/. Any changes, contributions, or questions can be sent to the webstack-discuss@opensolaris.org list, http://opensolaris.org/os/project/webstack/Mailing_LIsts/. There is also the IRC channel #opensolaris-web on freenode where the developers hang out.

Posted by Brian Overstreet on March 16, 2009 at 04:19 AM PDT #

I had to use the 'pending' package authority instead (OpenSolaris 2009.06), but it otherwise worked as advertised.

pkg set-authority -O http://pkg.opensolaris.org/pending pending
pkg refresh
pkg install mod-wsgi

Thanks!

Posted by Jonathan on August 11, 2009 at 04:35 AM PDT #

Thanks Jonathan! I've updated the post.

Posted by Brian Overstreet on August 12, 2009 at 05:27 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Brian Overstreet

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today