How do I activate nodejs application in Dedicated server?
In Linux Dedicated Servers cPanel has terminal options using that you can install Node.js apllication. Node.js is a JavaScript run time that allows you to build scalable web applications.
You can navigate to it by login to the cPanel account. cPanel >> Home >> Advanced >> Terminal.
1) Login to cPanel.
2) You can see the option “Terminal” under the “ADVANCED” menu. Click the option to open the terminal.
3) If you are accessing the terminal for the first time, a screen will appear with a warning message. Please click on the button proceed.
4) This interface provides command line access to your account on the server. You can now manage the account using CLI
Once you logged in to terminal you have to go to concern cPanel document root path and further you can follow the below steps,
1) Type cd /home/username/public_html in “Terminal”
2) run node sample.js
Once you executed the above command your application will get started you can check and proceed.