Changes between Version 28 and Version 29 of InstallationGuidelinesApacheModWSGI


Ignore:
Timestamp:
08/21/10 14:41:10 (11 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelinesApacheModWSGI

    v28 v29  
    44Also see InstallationGuidelinesLinux
    55
     6=== Add Web2Py user ===
     7Can run as Webserver, but if you can parition, you generally should:
     8{{{
     9adduser web2py
     10}}}
     11
    612=== File Permissions ===
    713{{{
    8 chown www-data /path/to/web2py/applications/admin/cache
    9 chown www-data /path/to/web2py/applications/admin/cron
    10 chown www-data /path/to/web2py/applications/admin/databases
    11 chown www-data /path/to/web2py/applications/admin/errors
    12 chown www-data /path/to/web2py/applications/admin/languages
    13 chown www-data /path/to/web2py/applications/admin/languages/*
    14 chown www-data /path/to/web2py/applications/admin/sessions
    15 chown www-data /path/to/web2py/applications/eden/cache
    16 chown www-data /path/to/web2py/applications/eden/cron
    17 chown www-data /path/to/web2py/applications/eden/databases
    18 chown www-data /path/to/web2py/applications/eden/errors
    19 chown www-data /path/to/web2py/applications/eden/languages
    20 chown www-data /path/to/web2py/applications/eden/languages/*
    21 chown www-data /path/to/web2py/applications/eden/sessions
    22 chown www-data /path/to/web2py/applications/eden/static/img/markers
    23 chown www-data /path/to/web2py/applications/eden/uploads
     14chown web2py ~web2py/applications/admin/cache
     15chown web2py ~web2py/applications/admin/cron
     16chown web2py ~web2py/applications/admin/databases
     17chown web2py ~web2py/applications/admin/errors
     18chown web2py ~web2py/applications/admin/languages
     19chown web2py ~web2py/applications/admin/languages/*
     20chown web2py ~web2py/applications/admin/sessions
     21chown web2py ~web2py/applications/eden/cache
     22chown web2py ~web2py/applications/eden/cron
     23chown web2py ~web2py/applications/eden/databases
     24chown web2py ~web2py/applications/eden/errors
     25chown web2py ~web2py/applications/eden/languages
     26chown web2py ~web2py/applications/eden/languages/*
     27chown web2py ~web2py/applications/eden/sessions
     28chown web2py ~web2py/applications/eden/static/img/markers
     29chown web2py ~web2py/applications/eden/uploads
    2430}}}
    2531== Cron ==
     
    2733{{{
    2834vim /etc/crontab
    29 0-59/1 * * * * www-data cd /var/www/web2py/ && python web2py.py -C -D 1 >> /tmp/cron.output 2>&1
     350-59/1 * * * * web2py cd ~web2py/ && python web2py.py -C -D 1 >> /tmp/cron.output 2>&1
    3036
    31 cp /var/www/web2py/options_std.py /var/www/web2py/options.py
    32 vim /var/www/web2py/options.py
     37cp ~web2py/options_std.py ~web2py/options.py
     38vim ~web2py/options.py
    3339extcron = True
    3440}}}
     
    5359  ServerName demo.eden.sahanafoundation.org
    5460  ServerAdmin webmaster@eden.sahanafoundation.org
    55   DocumentRoot /var/www/web2py/applications
     61  DocumentRoot /home/web2py/applications
    5662
    57   WSGIScriptAlias / /var/www/web2py/wsgihandler.py
     63  WSGIScriptAlias / /home/web2py/wsgihandler.py
    5864  ## Edit the process and the maximum-requests to reflect your RAM
    59   WSGIDaemonProcess web2py user=www-data group=www-data home=/var/www/web2py processes=5 maximum-requests=50
     65  WSGIDaemonProcess web2py user=web2py group=web2py home=/home/web2py processes=5 maximum-requests=50
    6066
    6167  RewriteEngine On