Changes between Version 71 and Version 72 of ConfigurationGuidelines
- Timestamp:
- 08/21/10 14:20:57 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ConfigurationGuidelines
v71 v72 1 == Configuration Guidelines == 1 [[TOC]] 2 = Configuration Guidelines = 2 3 How to configure a new instance. 3 === File Permissions === 4 5 == File Permissions == 4 6 {{{ 5 7 chown www-data web2py/applications/admin/cron … … 31 33 chown www-data eden/uploads/tracks 32 34 }}} 33 === Database Setup === 35 36 == Useful aliases == 37 {{{ 38 vim ~/.bashrc 39 alias w2p='cd ~/web2py;python web2py.py -S eden -M' 40 alias 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 == 34 44 Production system should use [wiki:InstallationGuidelinesMySQL MySQL]: 35 45 * Edit {{{models/000_config.py}}} 36 === Security === 46 47 == Security == 37 48 Before the 1st login, edit {{{models/000_config.py}}}: 38 49 {{{ 39 50 deployment_settings.auth.hmac_key = "akeytochange" 40 51 }}} 41 === Configurable Options === 52 53 === Roles === 54 By default the 1st user to register will gain the Administrator role. 55 56 All other users have just the 'Authenticated' level of access, which by default allows full Read/Update/Delete access to all records. 57 58 If 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 60 To add roles to users, go to the Administration menu & within User Management choose 'Membership'. 61 62 Old: Security policy is configured in {{{models/zzz.py}}} 63 64 == Configurable Options == 42 65 These can be set via [http://127.0.0.1:8000/sahana/admin/setting/1/update] 43 66 * Admin Name/Email/Tel … … 99 122 }}} 100 123 101 == = Mapping Options ===124 == Mapping Options == 102 125 http://localhost:8000/sahana/gis/config/update/1 103 126 … … 126 149 * USA L1-L2: http://www2.census.gov/cgi-bin/shapefiles/national-files 127 150 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 == 138 152 Edit cron/crontab to enable sending of emails & SMS: 139 153 {{{ … … 144 158 }}} 145 159 146 == = Ticket Viewer ===160 == Ticket Viewer == 147 161 Add the following to {{{routes.py}}} of your web2py installation for pretty error pages & the ability to view Tickets. 148 162 * copy from {{{routes.example.py}}}, if one doesn't yet exist. … … 157 171 }}} 158 172 159 == = {{{favicon.ico}}} & {{{robots.txt}}} ===173 == {{{favicon.ico}}} & {{{robots.txt}}} == 160 174 These can be provided via 2 different means: 161 175 * mod_rewrite 162 176 * {{{web2py/routes.py}}}: copy {{{routes.example.py}}} & edit 163 177 164 == = Themes ===178 == Themes == 165 179 Ensure these files are writable by the webserver: 166 180 {{{ … … 182 196 DeveloperGuidelinesThemes 183 197 184 == = Internet Hosting ===198 == Internet Hosting == 185 199 Can switch to having users download files from CDNs instead of your server.[[BR]] 186 200 This can improve performance in 2 ways: … … 192 206 ext-all.js & ext-all.css from Cachefly by uncommenting the lines in {{{views/gis/gis_scripts_min.html}}} & {{{views/gis/ol_js_loaders.html}}} 193 207 194 == = Performance Optimisation ===208 == Performance Optimisation == 195 209 * Disable DB migrations in {{{000_config.py}}}: migrate = False 196 210 * Use MySQL or PostgreSQL instead of SQLite