Changes between Version 71 and Version 72 of ConfigurationGuidelines


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

--

Legend:

Unmodified
Added
Removed
Modified
  • ConfigurationGuidelines

    v71 v72  
    1 == Configuration Guidelines ==
     1[[TOC]]
     2= Configuration Guidelines =
    23How to configure a new instance.
    3 === File Permissions ===
     4
     5== File Permissions ==
    46{{{
    57chown www-data web2py/applications/admin/cron
     
    3133chown www-data eden/uploads/tracks
    3234}}}
    33 === Database Setup ===
     35
     36== Useful aliases ==
     37{{{
     38vim ~/.bashrc
     39alias w2p='cd ~/web2py;python web2py.py -S eden -M'
     40alias pull='cd ~/web2py/applications/eden;bzr pull;chown web2py:web2py /home/web2py/applications/eden/languages/*;/etc/init.d/apache2 force-reload'
     41}}}
     42
     43== Database Setup ==
    3444Production system should use [wiki:InstallationGuidelinesMySQL MySQL]:
    3545 * Edit {{{models/000_config.py}}}
    36 === Security ===
     46
     47== Security ==
    3748Before the 1st login, edit {{{models/000_config.py}}}:
    3849{{{
    3950deployment_settings.auth.hmac_key = "akeytochange"
    4051}}}
    41 === Configurable Options ===
     52
     53=== Roles ===
     54By default the 1st user to register will gain the Administrator role.
     55
     56All other users have just the 'Authenticated' level of access, which by default allows full Read/Update/Delete access to all records.
     57
     58If allowing public self-registration, then you probably want to enable 'Editor' secturiy policy (Administration menu | Settings) which means that the general public can add records (& modify their own) but cannot modify other records.
     59
     60To add roles to users, go to the Administration menu & within User Management choose 'Membership'.
     61
     62Old: Security policy is configured in {{{models/zzz.py}}}
     63
     64== Configurable Options ==
    4265These can be set via [http://127.0.0.1:8000/sahana/admin/setting/1/update]
    4366 * Admin Name/Email/Tel
     
    99122}}}
    100123
    101 === Mapping Options ===
     124== Mapping Options ==
    102125http://localhost:8000/sahana/gis/config/update/1
    103126
     
    126149  * USA L1-L2: http://www2.census.gov/cgi-bin/shapefiles/national-files
    127150
    128 === Roles ===
    129 By default the 1st user to register will gain the Administrator role.
    130 
    131 All other users have just the 'Authenticated' level of access, which by default allows full Read/Update/Delete access to all records.
    132 
    133 To add roles to users, go to the Administration menu & within User Management choose 'Membership'.
    134 
    135 Security policy is configured in {{{models/zzz.py}}}
    136 
    137 === Enable Scheduled Tasks ===
     151== Enable Scheduled Tasks ==
    138152Edit cron/crontab to enable sending of emails & SMS:
    139153{{{
     
    144158}}}
    145159
    146 === Ticket Viewer ===
     160== Ticket Viewer ==
    147161Add the following to {{{routes.py}}} of your web2py installation for pretty error pages & the ability to view Tickets.
    148162 * copy from {{{routes.example.py}}}, if one doesn't yet exist.
     
    157171}}}
    158172
    159 === {{{favicon.ico}}} & {{{robots.txt}}} ===
     173== {{{favicon.ico}}} & {{{robots.txt}}} ==
    160174These can be provided via 2 different means:
    161175 * mod_rewrite
    162176 * {{{web2py/routes.py}}}: copy {{{routes.example.py}}} & edit
    163177
    164 === Themes ===
     178== Themes ==
    165179Ensure these files are writable by the webserver:
    166180{{{
     
    182196DeveloperGuidelinesThemes
    183197
    184 === Internet Hosting ===
     198== Internet Hosting ==
    185199Can switch to having users download files from CDNs instead of your server.[[BR]]
    186200This can improve performance in 2 ways:
     
    192206ext-all.js & ext-all.css from Cachefly by uncommenting the lines in {{{views/gis/gis_scripts_min.html}}} & {{{views/gis/ol_js_loaders.html}}}
    193207
    194 === Performance Optimisation ===
     208== Performance Optimisation ==
    195209 * Disable DB migrations in {{{000_config.py}}}: migrate = False
    196210 * Use MySQL or PostgreSQL instead of SQLite