How do i change from port 80 - Self Hosted Emoncms

How do i change the port a self hosted emoncms install runs on?

I think by default i have it running on port 80, but i need that free for Caddy

Okay so the way todo this

edit the file at

change the Listen 80 line to whatever port you want to switch to

Listen 80

then also edit the emoncms.conf file in


change the line below to the same port you are switching to

<VirtualHost *:80>

then sudo service apache2 restart