wiki:InstallationGuidelines/Amazon/Manual

Version 1 (modified by Fran Boon, 7 years ago) ( diff )

--

Manual Installation of Sahana

This older way of installing & configuring Sahana Eden remains documented here

1: Add Swapfile

You should add swap from a swap file in order to improve performance (especially on a Micro instance):

sudo su -
dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
mkswap /swapfile1
chown root:root /swapfile1
chmod 0600 /swapfile1
swapon /swapfile1
# Make persistent across reboots
cat << EOF >> "/etc/fstab"
/swapfile1 swap swap defaults 0 0
EOF

2: Install Sahana

  • Copy the installation and configuration scripts into the launched instance (assuming Cherokee & PostgreSQL):
    wget --no-check-certificate https://raw.githubusercontent.com/sahana/eden_deploy/master/install-eden-cherokee-postgis.sh
    chmod a+x install-eden-cherokee-postgis.sh
    wget --no-check-certificate https://raw.githubusercontent.com/sahana/eden_deploy/master/configure-eden-cherokee-postgis.sh
    chmod a+x configure-eden-cherokee-postgis.sh
    
    
  • Run the install-eden-cherokee-postgis.sh script. [Note: This step takes about 10min - grab a coffee]
    sudo su -
    ./install-eden-cherokee-postgis.sh
    
    

If you wish to update your site from an alternate github repo this can be done using:

3. Configure Sahana

Run configure-eden-cherokee-postgis.sh to configure the instance:

sudo su -
./configure-eden-cherokee-postgis.sh

  • Add your FQDN to /etc/hosts to ensure emails are accepted by all remote mailers:
    vim /etc/hosts
    127.0.0.1 host.domain host localhost
    
    /etc/init.d/exim4 restart
    
    NB On new Amazon instances you may also need to prevent Amazon from auto-updating this file by commenting this aspect:
    vim /etc/cloud/cloud.cfg
    # - update_etc_hosts
    
    
Note: See TracWiki for help on using the wiki.