3οΈβ£Install WP Detector
Install Hosting Hub Script
Finally we are ready to install the Hosting 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 Hosting_Hub.zip files. and run this command.
unzip WPTD.zip
This will unzip the zipped files and you can see a new folder named Hosting_Hub
Move to the Hosting_Hub folder.
cd WPTD
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 on port 3000.
pm2 start npm --name "wptd" -- 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 β wptd β fork β 0 β online β 0% β 34.1mb β
ββββββ΄βββββββββββββββββββββ΄βββββββββββ΄βββββββ΄ββββββββββββ΄βββββββββββ΄βββββββββββ
Now enter the command below. It will restart the script automatically if your server reboot.
pm2 startup
pm2 save
That's it. Site is online now. You can visit your site.
Last updated