Skip to content

Install on FreeBSD (onejar)

Leandro Scardua edited this page Oct 5, 2022 · 1 revision

This installation guide is specifically for FreeBSD Server 13 and higher. But it should work for any old release of FreeBSD. As we're using onejar, PWM has an embedded tomcat instance, so you don't need to install tomcat to use this version, and you won't be able to do any advanced tomcat configuration.

  1. Install the needed packages, OpenJDK11 and curl

    • pkg install curl openjdk11
  2. Download the desired version of pwm, ( latest: 2.0.4 )

    • curl -L -O -C - https://github.com/pwm-project/pwm/releases/download/v2_0_4/pwm-onejar-2.0.4.jar
  3. Create a folder structure on /usr/local/etc/pwm and move the onejar file

    • mkdir /usr/local/etc/pwm
    • cp pwm-onejar-2.0.4.jar /usr/local/etc/pwm
  4. Run the java command with nohup

    • nohup java -jar /usr/local/etc/pwm/pwm-onejar-2.0.4.jar -applicationPath /usr/local/etc/pwm &
  5. Now go to https://server-ip:8443

    • Configure pwm