I’ve installed a new copy of Emoncms using the script at
This was on a fresh install of Raspbian Buster. I used emonSD_pi_env=0 in my emonsd.config.ini for the install as I just want Emoncms, not Emonhub as well.
It went smoothly, except the script seemed to have forgotten to install the python3-redis module needed for the service-runner. (that service-runner.py wouldn’t run).
After fixing that, I had a good install of Emoncms.
However - I have a question. With this setup, I can’t seem to figure out how to get Emoncms to play nice with other Apache2 Virtualhosts on the same Pi.
For instance, I want /emoncms to be just that, Emoncms. I want my root or / directory to be something else, (like wordpress or similar) I had this previously set up on an old non-scripted install of Emoncms.
I set up my virtual hosts how I want them, and got rid of the index.html that the Emoncms script puts in the /var/www/html/ directory to forward over to Emoncms. This then just 404s when attempting to navigate to /emoncms.
Anyone done anything similar using the Emoncms Install scripts?
The document route should indeed not be /var/www/ but /var/www/html is just an example folder for the default “hello this is Apache” page to reside in. Any website should indeed be in a folder within /var/www/ eg like /var/www/emoncms, whilst you can use /var/www/html you’d be better off using something like /var/www/myawesomesitesrootfolder and creating a new virtualhost pointing at that folder. In that folder you can have a symlink to /var/www/emoncms to give you the /emoncms sub-directory. This avoids confusion with or changing of the default /var/www/html/ folder and/or the existing emoncms virtual host that should/could be disabled if you are accessing emoncms via another virtual host.
Thanks again for the help! It looks like that emonSD_pi_env=1 helped loads. Now everything works how I think it should. No issues with installation, and I omitted everything that is normally installed on an EmonPi setup as I don’t require those modules/wifi control etc in my setup.
Got my Pi set up with my many web based tools again like HomeAssistant, Nodered, Wordpress, and others.