1. Home
  2. Framework
  3. How to change the port the Snapt UI runs on?

How to change the port the Snapt UI runs on?

If you are running a Snapt bundle or VM image you will notice that by default the server runs on port 8080.

This may be undesirable as you may want to use that port for something else.

Please see the steps below to make the necessary changes.


Option 1: Snapt VM Image

When making use of the Offical Snapt VM Image, the directory in which on the config file is stored is:

/etc/lighttpd

We then want to make use of your preferred text editor (VIM or Nano, etc.) to open the file called:

lighttpd.conf

Changing the port:

You can now change the “server.port” to your desired port.

 

Option 2: Snapt Bundle Install

When making use of the Snapt Bundle Install, the process is the same for changing the port, but the directory is slightly different.

/usr/local/snapt/etc

We then want to make use of your preferred text editor (VIM or Nano, etc.) to open the file called:

lighttpd.conf

Changing the port:

You can now change the “server.port” to your desired port.

Restarting the UI

After you’ve made the port changes, and save the “lighttpd.conf” you’ll need to restart the Snapt UI for the change to take effect.

Step 1: Stopping the Snapt UI

Run the command below. This will stop the UI

killall lighttpd

Step 2: Starting the UI

VM Image:

 systemctl start lighttpd

Snapt Bundle:

/usr/local/snapt/start.sh
Updated on October 17, 2019


Was this article helpful?

Related Articles