Grow Your Business Online.
Submit a ticket My Tickets
Welcome
Login  Sign up

Node.js for Plesk

Plesk comes with a Node.js extension that allows you to manage apps easily. In this knowledge based, we’ll illustrate the detail how to work with Node.js apps in the context of Plesk Obsidian, the latest version of Plesk. 


Node.js support in Plesk enables you to:

  • Add Node.js applications to your websites with just a few clicks.
  • Easily manage the application from Plesk (start/stop/restart the application, install NPM packages, run scripts, edit the configuration files – Plesk does it all).
  • Have multiple Node.js versions installed on the server (Plesk for Linux only).


Enabling Node.js support

To enable Node.js support on the server, follow these steps:

Plesk for Linux

  1. Go to Tools & Settings and click Updates.
  2. Go to Add/Remove Components, expand Web hosting, and mark the “NodeJS support” component for installation.
  3. Click Continue to begin the installation.

Plesk for Windows

  1. Go to Tools & Settings and click Updates.
  2. Go to Add/Remove Components, expand Web hosting, and mark the “Node.js IIS module (iisnode)” and “Node.js” components for installation.
  3. Select the desired Node.js version under the “Node.js” component
  4. Click Continue to begin the installation.

In a few minutes, all the necessary components will be installed and you’ll be ready to go!



Managing Node.js versions

Plesk supports the latest stable and LTS releases of Node.js, with the following limitations:

  • (Plesk for Linux) Both releases can be installed simultaneously, and Node.js applications on different domains can use any available Node.js version.
  • (Plesk for Windows) Only one Node.js version can be installed at any time, and is used to power all Node.js applications on the server.

To manage the Node.js version(s) available on the server, follow these steps:

Plesk for Linux

  1. Go to Extensions and click Node.js Manager. Here, you can see the Node.js versions installed on the server as well as the paths to their corresponding binaries.
  2. Click the "Tick" icon next to a Node.js version to disable it. Disabling a Node.js version has the following effects:
    • The disabled Node.js version can no longer be selected when managing Node.js applications for domains.
    • Existing Node.js applications are switched to a different, enabled Node.js version (if possible).
    • If all Node.js versions on the server are disabled, all existing Node.js applications stop working, and the ability to manage Node.js applications for domains is removed until at least one Node.js version is enabled again.
  3. Click the "Tick" icon next to a disabled Node.js version to enable it.

Plesk for Windows

  1. Go to Extensions and click Node.js Manager. Here, you can see the Node.js version installed on the server as well as the path to its binary.
  2. Click the "Tick" icon next to the installed Node.js version to disable it. This will make all existing Node.js applications stop working, and the ability to manage Node.js applications for domains will be removed until Node.js is enabled again.
  3. Click the "Tick"  icon next to the installed Node.js version to enable it.
  4. To change the installed Node.js version, go to Tools & Settings, click Updates, go to Add/Remove Components, expand Web hosting, select the desired Node.js version under the “Node.js” component, and then click Continue.


Managing and run Node.js applications for websites

We won't be going into detail on how to install/register the Node.js for your domains. To learn about managing Node.js applications for websites, please refer to official Plesk articles below.


https://docs.plesk.com/en-US/obsidian/customer-guide/nodejs-support.76652/

https://support.plesk.com/hc/en-us/articles/360016012673-How-to-install-and-run-Node-js-application-via-Plesk-

https://www.plesk.com/blog/product-technology/node-js-plesk-onyx/

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.