wiki:InstallationGuidelines/Amazon/Manual

Version 5 (modified by Fran Boon, 4 years ago) ( diff )

ToC

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=/mnt/swapfile bs=1024 count=524288
mkswap /mnt/swapfile
chown root:root /mnt/swapfile
chmod 0600 /mnt/swapfile
swapon /mnt/swapfile
# Make persistent across reboots
cat << EOF >> "/etc/fstab"
/mnt/swapfile 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_manual/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_manual/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
    
    

4. Add a Test site (Optional)

This script requires at least 4Gb on the main disk

sudo su -
wget https://raw.githubusercontent.com/sahana/eden_deploy_manual/master/add_test_site.sh
chmod a+x add_test_site.sh
./add_test_site.sh

NB This script has an issue & the file /etc/cherokee/cherokee.conf needs to be manually edited to fix the lines wrapping for Source 1 (fix welcomed!)

5. Add a Demo site (Optional)

This script requires at least 6Gb on the main disk.

This script assumes that a Test site has already been installed

sudo su -
wget https://raw.githubusercontent.com/sahana/eden_deploy_manual/master/add_demo_site.sh
chmod a+x add_demo_site.sh
./add_demo_site.sh

NB This script has an issue & the file /etc/cherokee/cherokee.conf needs to be manually edited to fix the lines wrapping for Source 1 (fix welcomed!)

Note: See TracWiki for help on using the wiki.