⇤ ← Revision 1 as of 2013-12-26 12:14:07
Size: 705
Comment:
|
Size: 1221
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 29: | Line 29: |
== Slackware 14 installation == * wget http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-3.4.tar.gz&can=1&q= * cp mod_wsgi-3.4.tar.gz /tmp * cd /tmp * tar xvzf mod_wsgi-3.4.tar.gz * cd mod_wsgi-3.4 * ./configure * make clean * make * make install * ldconfig * ls /usr/lib/httpd/modules #should appear file mod_wsgi.so * touch /etc/httpd/mod_wsgi.conf Edit file /etc/httpd/httpd.conf and add {{{ Include /etc/httpd/mod_wsgi.conf Include /etc/httpd/vhosts.conf }}} |
modwsgi
Python WSGI adapter module for Apache.
http://code.google.com/p/modwsgi/
Ubuntu installation 12.04
- apt-get install libapache2-mod-wsgi
- service apache2 restart
Create file /var/www/test.wsgi
Add to file /etc/apache2/sites-available/default inside the Virtual host the following
WSGIScriptAlias /test /var/www/test.wsgi
Slackware 14 installation
wget http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-3.4.tar.gz&can=1&q=
- cp mod_wsgi-3.4.tar.gz /tmp
- cd /tmp
- tar xvzf mod_wsgi-3.4.tar.gz
- cd mod_wsgi-3.4
- ./configure
- make clean
- make
- make install
- ldconfig
- ls /usr/lib/httpd/modules #should appear file mod_wsgi.so
- touch /etc/httpd/mod_wsgi.conf
Edit file /etc/httpd/httpd.conf and add
Include /etc/httpd/mod_wsgi.conf Include /etc/httpd/vhosts.conf