Switching from "apt" to "git" emonCMS

Should you find yourself wanting to install emoncms from git having previously installed via the apt-get method, it is possible to  "add" a git installed version and use existing settings and data.(normal precautions apply about backing up data etc) To start  just clone emoncms as in the install guide

cd /var/
sudo chown pi /www
cd /www
git clone https://github.com/emoncms/emoncms.git

and copy across your existing settings file

cp /usr/share/emoncms/www/settings.php emoncms/settings.php

then to redirect from the "apt" version to the "git" rename apache2's existing "sites-available" entry

sudo mv /etc/apache2/sites-available/emoncms /etc/apache2/sites-available/emoncmsAPT

and create a new one

sudo nano /etc/apache2/sites-available/emoncms

containing

Alias /emoncms /var/www/emoncms
<Directory /var/www/emoncms>
  Options FollowSymLinks
  AllowOverride All
  DirectoryIndex index.php
  Order allow,deny
  Allow from all
</Directory>

Any additional emoncms modules will also need to be re-cloned from git or copied from the APT version folders, then restart apache with

sudo /etc/init.d/apache2 restart

You should be up and running using the same login & data etc on the latest git version of emoncms

The apt version is still intact so you should be able to revert back to it by simply renaming "sites-available" entries

sudo mv /etc/apache2/sites-available/emoncms /etc/apache2/sites-available/emoncmsGIT
sudo mv /etc/apache2/sites-available/emoncmsAPT /etc/apache2/sites-available/emoncms
sudo /etc/init.d/apache2 restart

This is intended as a development tool and not an upgrade path, please beware of running multiple versions as some features and data may not be backwards-compatable. Since this is not a recommended path for upgrading it should only really be used if waiting for the apt version update isn't an option or you need a git version to contribute to development.. 

I have only just tried this myself and therefore not tested in great depth, if any issues arise I will post here, please feel free to do the same or add anything I've missed.

Paul