== Installation on Apache with WSGI == This is what is used to host the Demo site & Trac (sharing just 128Mb RAM!) * mod_rewrite: http://mdp.cti.depaul.edu/AlterEgo/default/show/144 If running on a UNIX variant (as would be recommended) then suggest using the [http://www.web2py.com/examples/default/cron#external Native Cron] {{{ vim /etc/crontab 0-59/1 * * * * www-data cd /var/www/web2py/ && python web2py.py -C -D 1 >> /tmp/cron.output 2>&1 cp /var/www/web2py/options_std.py /var/www/web2py/options.py vim /var/www/web2py/options.py extcron = True }}} === Ubuntu === {{{ apt-get install libapache2-mod-wsgi a2enmod rewrite vim /etc/apache2/sites-available/web2py }}} {{{ ServerName demo.sahanapy.org ServerAdmin webmaster@sahanapy.org DocumentRoot /var/www/web2py/applications WSGIScriptAlias / /var/www/web2py/wsgihandler.py WSGIDaemonProcess web2py user=www-data group=www-data home=/var/www/web2py processes=10 maximum-requests=500 RewriteEngine On RewriteRule ^/$ /sahana/ [R] ### admin only accessible via SSH Tunnel SSLRequireSSL ### appadmin requires SSL SSLRequireSSL ### static files do not need WSGI Order Allow,Deny Allow from all ### everything else goes over WSGI Order deny,allow Allow from all WSGIProcessGroup web2py ErrorLog /var/log/apache2/demo_error.log LogLevel warn CustomLog /var/log/apache2/demo_access.log combined }}} {{{ ln -s /etc/apache2/sites-available/web2py /etc/apache2/sites-enabled/web2py /etc/init.d/apache2 force-reload }}} WSGI Installation comments: http://blog.dscpl.com.au/2009/08/problems-with-example-web2py.html ---- InstallationGuidelines