| 1 | = Manual Installation of Sahana = |
| 2 | This older way of installing & configuring Sahana Eden remains documented here |
| 3 | |
| 4 | == 1: Add Swapfile == |
| 5 | You should add swap from a swap file in order to improve performance (especially on a Micro instance): |
| 6 | {{{ |
| 7 | sudo su - |
| 8 | dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 |
| 9 | mkswap /swapfile1 |
| 10 | chown root:root /swapfile1 |
| 11 | chmod 0600 /swapfile1 |
| 12 | swapon /swapfile1 |
| 13 | # Make persistent across reboots |
| 14 | cat << EOF >> "/etc/fstab" |
| 15 | /swapfile1 swap swap defaults 0 0 |
| 16 | EOF |
| 17 | |
| 18 | }}} |
| 19 | |
| 20 | == 2: Install Sahana == |
| 21 | * Copy the installation and configuration scripts into the launched instance (assuming [wiki:InstallationGuidelines/Linux/Server/CherokeePostgreSQL Cherokee & PostgreSQL]): |
| 22 | {{{ |
| 23 | wget --no-check-certificate https://raw.githubusercontent.com/sahana/eden_deploy/master/install-eden-cherokee-postgis.sh |
| 24 | chmod a+x install-eden-cherokee-postgis.sh |
| 25 | wget --no-check-certificate https://raw.githubusercontent.com/sahana/eden_deploy/master/configure-eden-cherokee-postgis.sh |
| 26 | chmod a+x configure-eden-cherokee-postgis.sh |
| 27 | |
| 28 | }}} |
| 29 | |
| 30 | * Run the install-eden-cherokee-postgis.sh script. [Note: This step takes about 10min - grab a coffee] |
| 31 | {{{ |
| 32 | sudo su - |
| 33 | ./install-eden-cherokee-postgis.sh |
| 34 | |
| 35 | }}} |
| 36 | |
| 37 | If you wish to update your site from an alternate github repo this can be done using: |
| 38 | * ConfigurationGuidelines#SwitchtoanalternateGitHubrepo |
| 39 | |
| 40 | == 3. Configure Sahana == |
| 41 | Run configure-eden-cherokee-postgis.sh to configure the instance: |
| 42 | {{{ |
| 43 | sudo su - |
| 44 | ./configure-eden-cherokee-postgis.sh |
| 45 | |
| 46 | }}} |
| 47 | |
| 48 | * Add your FQDN to {{{/etc/hosts}}} to ensure emails are accepted by all remote mailers: |
| 49 | {{{ |
| 50 | vim /etc/hosts |
| 51 | 127.0.0.1 host.domain host localhost |
| 52 | |
| 53 | /etc/init.d/exim4 restart |
| 54 | |
| 55 | NB On new Amazon instances you may also need to prevent Amazon from auto-updating this file by commenting this aspect: |
| 56 | vim /etc/cloud/cloud.cfg |
| 57 | # - update_etc_hosts |
| 58 | |
| 59 | }}} |