Wednesday Feb 18, 2009

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.



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