Skip to content

Getting Started

github-actions[bot] edited this page Dec 4, 2026 · 1 revision

Getting Started

OwnCMS is one program with its web interface built in. It keeps its data in SQLite in a data directory, or in Postgres.

Run it

There is no release yet; build it from source. You need Go (the version in go.mod) and Node.js.

git clone https://github.com/ownlabs-dev/owncms.git && cd owncms
make build
bin/owncms serve -data ./data -listen 127.0.0.1:8080

With Postgres instead of SQLite, give its address in the environment:

OWNCMS_DATABASE='postgres://user:password@localhost:5432/owncms?sslmode=disable' bin/owncms serve -data ./data

Behind a reverse proxy that terminates HTTPS, tell OwnCMS its address with -trusted-proxies. All flags: Reference.

The first administrator

At the first start OwnCMS writes a one-time setup code to its log:

level=WARN msg="OwnCMS is not set up yet: …" setup_code=ABCD-EFGH-…

Open /admin/ in the browser, enter the code, your e-mail address and a password. The code is useless once the first administrator exists. A forgotten password is reset on the server: owncms admin reset-password you@example.com.

Next

Clone this wiki locally