Install Unifi controller on Windows server

Step 1: Download latest version of Ubiquiti UniFi Controller

Download the latest version of Ubiquiti UniFi Controller from: http://www.ubnt.com/download#UniFi:AP

Step 2: Download latest version of Java (32bit)

Your server must have both the 32bit and 64bit of Java installed to properly run the UniFi Controller as a Windows service. The UniFi Controller install will automatically install the 64bit version but a manual download of 32bit Java must be completed as well.

Download JAVA here: https://ninite.com/Java8

Step 3: Install UniFi Controller

Go ahead and start the installation of the UniFi Controller on your server.

Step 4: Proceed through Java download and install provided with package

Step 5: Finish Setup but DO NOT start UniFi Controller

Once the installation is completed, DO NOT start the UniFi Controller. Be sure to uncheck the box on the last screen of the UniFi installation.

Step 6: Optional Step – Move UniFi Controller files to new location

Although this step is not required, you can move the UniFi Controller files to a new location. By default UniFi will install the files in %windir%\users\%username%\Ubiquiti UniFi folder. Simply copy that entire folder.

I prefer to move to the location with my other program files, I.E. – %windir%\Program Files\Ubiquiti UniFi

Step 7: Locate installation path of Java 32bit

Locate the folder which the 32bit version of Java has been installed in Step 2.

Generally it will be located in:

%windir%\Program Files (x86)\Java\jre7\bin

Note: This location may vary based on your version of Java. At the time of this guide, Java 7 was the latest version available.

Step 8: Add Java 32bit to Path Variable

By adding Java to the Path Variable you can run JDK executable files from any directory without having to type the full path of the command. This is required to run UniFi Controller as a Windows service.

Go to Control Panel -> System -> Advanced System Settings. Your System Properties window will open. Select the Advanced Tab and then the Environmental Variables button.

Under the System Variables section, highlight the Path variable and select Edit.

A new window will open displaying the current Path Variable values. At the end of the Path Variable value be sure to add a semi-colon (;) and then add the Java 32bit location (Step 7) to the end of the value and add a second semi-colon (;) to the end of that.

Select OK to save the value and select OK on all open windows.

Step 9: Open an elevated command prompt

Open an elevated command prompt (Run As Administrator).

Change directories to the location of your Ubuiqiti UniFi folder (Step 6).

Type the following command to install the UniFi Controller as a Windows service:

java -jar lib\ace.jar installsvc

Step 10: Start UniFi Controller service

From the command prompt run the following to start the UniFi Controller service:

net start “UniFi Controller”

*** If this doesn’t start the service or if you get a weird error – Install 64 bit Java manually and set the environmental path to it ***

Step 11: Login to UniFi Controller Web Admin page

You can now log into the UniFi Controller web admin page to finish the installation of the UniFi Controller. Don’t forget to open the appropriate ports on your Windows firewall to allow the UniFi Controller to communicate with the AP’s!

Step 12: Add the Controller to your Cloud access portal (If you have one)

Go into settings, then Cloud access and enable “Cloud access”.  It will then prompt for the credentials and you can then add it to a cloud access portal should that be required. 

Leave a Reply