Umami Self Hosted Analytics Cloud VPS ☁ Configuration 🔧
Umami Self Hosted Analytics Cloud VPS ☁ Configuration 🔧
Umami is a simple, fast, website analytics alternative to Google Analytics.
Install and Setup Umami on Ubuntu Cloud VPS Server ⚙
cd /var/www/
git clone https://github.com/mikecao/umami.git
cd umami
npm install
cd /var/www/umami
mysql -u username -p databasename < sql/schema.mysql.sql
.env
file for database connection and Hash salt in the umami cloned/downloaded Folder /var/www/umami
touch .env
nano .env
DB_USER=username
DB_PASSWORD=password
DB_HOST=localhost
DB_PORT=3306
DB_NAME=databasename
DATABASE_URL=mysql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}
HASH_SALT=somerandomstring
Generate Hash Salt from - https://bitwarden.com/password-generator
npm run build
npm start
if you enabled the ufw on your Server then allow the umami port and MYSQL port
ufw allow 3000
ufw allow mysql
ufw reload
MIT