hs6666
(harry)
8 September 2020 12:50
1
Hi,
I just installed opencms on debian (custom script install), everything works fine
I need to change the port emoncms uses so that I can install another app (pihole adblock) on the same system which uses port 80, I tried following but does not seem to work
edited “emoncms.conf” in “/etc/apache2/sites-enabled” from “<VirtualHost *:80>” to “<VirtualHost *:7777>”
restarted apache
tried http://ipaddress:7777/emoncms , but not working
Any ideas please?
Thanks
pb66
(Paul)
8 September 2020 17:56
2
The older images all used UFW (Uncomplicated Fire Wall) with only specific ports open. If UFW is still installed you will need to open port 7777 for inbound traffic.
hs6666
(harry)
9 September 2020 05:59
3
hi,
its my own linux install without any firewall install, emoncms was installed using the following install script on top…
# EmonCMS Install Scripts
## Introduction
This build script can be used to build a fully fledged emonCMS installation on debian based operating systems, including: installation of LAMP server and related packages, redis, MQTT, emonCMS core, emonCMS modules, and if applicable, emonhub & RaspberryPi support for serial port, and WiFi access point.
The script is a series of scripts that install each required component. To see what is installed and how open each script.
**New image released July20<br>[https://community.openenergymonitor.org/t/emonsd-24jul20-release/15170](https://community.openenergymonitor.org/t/emonsd-24jul20-release/15170)**
As of July 2020 - Tested on:
- Raspberry Pi OS (32-bit) Lite 2020-05-27
- Ubuntu 20.04 LTS
It is **strongly recommended** that you dedicate a single device (NUC/VM/Pi) to emoncms. Using it alongside other software can prove problematic.
[**Forum:** EmonSD build script progress update and beta release](https://community.openenergymonitor.org/t/emonsd-build-script-progress-update-and-beta-release/11222)
## Pre-built Image
This file has been truncated. show original
borpin
(Brian Orpin)
9 September 2020 08:01
4
A bit of googling gave me the answer I think How to Change Apache HTTP Port in Linux
You need to tell Apache to actually listen on that port as well. Every day a learning day.
hs6666
(harry)
9 September 2020 08:46
5
oh ok, decided to keep it simple though, shut down apache, installed pihole, changed pihole port from 80, restarted apache