Changing port on RaspberryPI for EmonCMS [SOLVED]

Hi All

Having searched the forums and been unable to find anything specific, and followed the general instructions for changing the port address for Apache2 [edit ports.conf] [edit default-000] and restarting apache, I've been unable to get the unit to change port. The unit will just disappear for web access, but if I restore the port to port 80, everything returns as expected.

I'm using the latest read only version of the sd card image, and have been using "sudo mount -o remount,rw /" to allow access for editing.

I assume someone must have changed the port address, and would like to understand what I'm doing wrong.

Regards Doug

pb66's picture

Re: Changing port on RaspberryPI for EmonCMS [SOLVED]

When the SDcard is configured ufw (uncomplicated firewall) is installed and port 80 is "allowed" if you wish to use a different port you will need to "allow" the new port. using rpi-rw where necessary to allow writing, you can check the existing rules with 

sudo ufw status

and to add-remove rules see the ufw help menu with

ufw -h

and once you have the rules in place you will need to re-start the firewall to implement the new rules with

sudo ufw enable

Paul

 

EDIT - see https://help.ubuntu.com/community/UFW for more info

Morgai's picture

Re: Changing port on RaspberryPI for EmonCMS [SOLVED]

Thanks Paul

Easy to fix and sorted now.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.