Login as the postgres
DB user
sudo -u postgres psql
Create a new Planka user
CREATE USER planka WITH PASSWORD '************';
Create a new database for Planka
CREATE DATABASE planka OWNER planka;
Install Node.js with APT.
apt install nodejs npm && \
node -v
If a newer version is required, use this method instead.
Create a new Unix user
useradd -ms /bin/bash planka
Create a new web director
mkdir -p /var/www/planka/ && \
chown -R planka:planka /var/www/planka/
Login as the Planka user and navigate to the new web directory
sudo -iu planka
Navigate to the new web directory, download Planka, unpack the archive, then remove the archive
cd /var/www/planka && \
curl -fsSL -O https://github.com/plankanban/planka/releases/latest/download/planka-prebuild.zip && \
unzip planka-prebuild.zip -d /var/www/ && \
rm planka-prebuild.zip
Install dependencies
npm install
Copy the example .env
file and generate a SECRET_KEY
cp .env.sample .env && \
sed -i "s/^SECRET_KEY=.*/SECRET_KEY=$(openssl rand -hex 64)/" .env
To run Planka in the background, as a service, using PM2