= 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 [wiki:InstallationGuidelines/Linux/Server/CherokeePostgreSQL 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: * ConfigurationGuidelines#SwitchtoanalternateGitHubrepo == 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 }}}