Monday, January 13, 2020

How To install Wekan with Nodejs Mongodb Apache2 On Ubuntu 18.04 LTS

Video Tutorial -  https://youtu.be/qEAY2IGgXEI

 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Wekan is a free, flexible and open source Kanban Board. With Wekan we can create boards and cards which can be moved between a number of columns. Wekan allows you to invite members to the board and assign tasks to a specific member.
Offcial Website: https://wekan.github.io/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |IP address- 192.168.1.50  | Hostname :www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common net-tools git

useradd -m -s /bin/bash wekan
passwd wekan

su - wekan
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
source ~/.bashrc
command -v nvm
nvm --version
nvm install v4.8
nvm use node

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 68818C72E52529D4
sudo echo "deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt update ; sudo apt install mongodb-org mongodb-org-server mongodb-org-shell mongodb-org-mongos mongodb-org-tools
sudo systemctl start mongod ; sudo systemctl enable mongod
mongo
use admin
db.createUser({user:"admin", pwd:"admin123", roles:[{role:"root", db:"admin"}]})
exit
sudo nano /lib/systemd/system/mongod.service
ExecStart=/usr/bin/mongod --auth --config /etc/mongod.conf
sudo systemctl daemon-reload ; sudo service mongod restart
mongo -u admin -p admin123 --authenticationDatabase admin

mongo -u admin -p
use wekan
db.createUser(
{
user: "wekan",
pwd: "StrongPassword",
roles: ["readWrite"]
}
)

wget https://github.com/wekan/wekan/releases/download/v0.63/wekan-0.63.tar.gz
tar xf wekan-0.63.tar.gz ; cd bundle/programs/server
npm install

export MONGO_URL='mongodb://wekan:StrongPassword@localhost:27017/wekan?authSource=wekan'
export ROOT_URL='http://localhost'
export MAIL_URL='smtp://user:pass@127.0.0.1:25/'
export MAIL_FROM='wekan@127.0.0.1'
export PORT=8000
cd ~/bundle
node main.js

npm install forever -g
forever start main.js

sudo apt install apache2 -y
sudo a2enmod proxy proxy_http
sudo nano /etc/apache2/sites-available/yourdomain.conf
<VirtualHost *:80>
    ProxyPreserveHost On   
    ServerName www.yourdomain.com
    ProxyPass / http://127.0.0.1:8000/
    ProxyPassReverse / http://127.0.0.1:8000/
</VirtualHost>
sudo a2dissite 000-default ; sudo a2ensite yourdomain ; sudo a2enmod rewrite
sudo apache2ctl configtest ; sudo systemctl reload apache2
www.yourdomain.com

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment