Changes between Initial Version and Version 1 of InstallationGuidelines/Amazon/Manual


Ignore:
Timestamp:
02/21/18 14:43:35 (7 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Amazon/Manual

    v1 v1  
     1= Manual Installation of Sahana =
     2This older way of installing & configuring Sahana Eden remains documented here
     3
     4== 1: Add Swapfile ==
     5You should add swap from a swap file in order to improve performance (especially on a Micro instance):
     6{{{
     7sudo su -
     8dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
     9mkswap /swapfile1
     10chown root:root /swapfile1
     11chmod 0600 /swapfile1
     12swapon /swapfile1
     13# Make persistent across reboots
     14cat << EOF >> "/etc/fstab"
     15/swapfile1 swap swap defaults 0 0
     16EOF
     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{{{
     23wget --no-check-certificate https://raw.githubusercontent.com/sahana/eden_deploy/master/install-eden-cherokee-postgis.sh
     24chmod a+x install-eden-cherokee-postgis.sh
     25wget --no-check-certificate https://raw.githubusercontent.com/sahana/eden_deploy/master/configure-eden-cherokee-postgis.sh
     26chmod 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{{{
     32sudo su -
     33./install-eden-cherokee-postgis.sh
     34
     35}}}
     36
     37If you wish to update your site from an alternate github repo this can be done using:
     38* ConfigurationGuidelines#SwitchtoanalternateGitHubrepo
     39
     40== 3. Configure Sahana ==
     41Run configure-eden-cherokee-postgis.sh to configure the instance:
     42{{{
     43sudo 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{{{
     50vim /etc/hosts
     51127.0.0.1 host.domain host localhost
     52
     53/etc/init.d/exim4 restart
     54
     55NB On new Amazon instances you may also need to prevent Amazon from auto-updating this file by commenting this aspect:
     56vim /etc/cloud/cloud.cfg
     57# - update_etc_hosts
     58
     59}}}