3️⃣Install DomainHub

Install Domain Hub Script

Finally we are ready to install the Domain Hub script to the server.

First your need to upload the downloaded zip file to the server root directory. You can put the files to any directory.

Use your favourite ftp tool to upload the files.

Then open the ssh terminal and follow these steps.

Install the unzip package to unzip your zip files.

sudo apt install unzip

Now move to the directory where you uploaded the DomainHub zip files. and run this command.

unzip DomainHub.zip

This will unzip the zipped files and you can see a new folder named DomainHub

Move to the DomainHub folder.

cd DomainHub

Install the necessery packages by running this command.

npm install

This will take a few minutes or seconds.

Now come back to the PM2 process manager. This package require to run your script automatically if your server reboot.

pm2 start npm --name "domainhub" -- start

You will see a message like this.

[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
[PM2] PM2 Successfully daemonized
[PM2] Starting /usr/bin/npm in fork_mode (1 instance)
[PM2] Done.
β”Œβ”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ id β”‚ name               β”‚ mode     β”‚ β†Ί    β”‚ status    β”‚ cpu      β”‚ memory   β”‚
β”œβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 0  β”‚ domainhub          β”‚ fork     β”‚ 0    β”‚ online    β”‚ 0%       β”‚ 34.1mb   β”‚
β””β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

That's it. Site is online now. You can visit your site.

Last updated