How to Install NodeJS via Softaculous in cPanel?

Installing NodeJS via Softaculous in cPanel:

Node.js is an open-source, cross-platform runtime environment for developing server-side and networking applications. Node.js applications are written in JavaScript and can be run within the Node.js runtime on OS X, Microsoft Windows, and Linux.

Node.js also provides a rich library of various JavaScript modules which simplifies the development of web applications using Node.js to a great extent.

 

Following are the steps on how we can install and manage NodeJS application:

1) Login to the cPanel and click on the “Setup Nodejs App” button under the Software Menu to access the NodeJS managing area.

http://portal.hostbreak.com/images/kb/article_cpanel_nodeJS.jpg

2) Click on the “Create Application” button at the top-right corner to create a new application.

http://portal.hostbreak.com/images/kb/article_cpanel_nodeJS.jpg

3) Fill out the details for the new application and click on the “Create” button at the top-right corner.

  1. Select the Node.js version from the drop-down menu
  2. Choose application mode from the menu, either Production or Development
  3. Application root – Specify the physical location to the application
  4. Application URL – Specify the HTTP/HTTPS URL to the application
  5. Application startup file – Specify the .js file name here

4) Once you have created the application, you can stop/restart/edit/remove the application via the interface.

http://portal.hostbreak.com/images/kb/article_cpanel_nodeJS.jpg

5) When clicking the ‘Edit’ icon, you can make changes to the already created application including the variables you have set on it.

These are the options in the NodeJS application edit interface:

  1. Stop/Restart application – You can stop/restart the application by click on that specific icon.
  2. Destroy – To remove the NodeJS application
  3. Run NPM Install – To install the package(s) mentioned in the packages.json file in the application root folder.
  4. Run JS script – To run a command specified in packages.json file script section.
  5. ADD VARIABLE – To add a variable for the application.

http://portal.hostbreak.com/images/kb/article_cpanel_nodeJS.jpg

6) You can also alter other settings such as Node.js version, application mode/root/URL and the startup file. Once you have made the changes, click on the “Save” button and restart the application once to take in effect.

Was this answer helpful? 6 Users Found This Useful (154 Votes)