READ ME FIRST:
This article is provided as a courtesy and is intended as a general guide. Installing, configuring, and troubleshooting third-party applications is not supported by (mt) Media Temple. Our support staff will be unable to assist you should you run into any complications installing this software. Please take a moment to review our Statement of Support.
Via the Plesk control panel
Node.js on Plesk requires that you are using Plesk version Onyx or above. To ensure that you're using a compatible version of Plesk, log in and check your version. Navigate to Tools & Settings > Updates and Upgrades. For help upgrading your current version of Plesk, navigate here.
1. Log into your Plesk control panel and click on Tools & Settings.
2. Select Updates and Upgrades from the Plesk column.
3. Click on Add/Remove Components. This may take a minute or so to load.
4. Click the + symbol next to Web Hosting and then toggle Node.js support and Phusion Passenger Server to install. Phusion Passenger is a web app framework that Plesk uses to manage Node.js. Click Continue.
5. You should receive a confirmation screen once the installation completes. You may also be prompted to install additional dependencies prior to a successful install. If this is the case, review the installation changes and the click Continue again.
Manage your settings and enable node.js
Once Node.JS is installed, you can manage your application settings and enable Node.js via the Plesk control panel. Log in and navigate to Websites & Domains and click on the Node.js icon.
Toggle any of the settings by clicking on them.
- As of the time of this writing, Plesk automatically installs Node.js versions 8.9.3 and 6.12.2
- The application root is the root directory of your Node.js app. This is where you will put your start and package.json files.
- Document Root is where Plesk will look for static files.
Once you are satisfied with the configuration, click on Enable Node.js. As long as everything was installed and configured properly, your application should now be functioning.
- Additional settings will appear that allow you to quickly stop/restart.
- If your application has NPM dependencies, click NPM Install, and Plesk will read the package.json file and install all dependencies.