Follow

Install Node.js on your Media Temple DV

  • Applies to: DV
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Plesk administrator access
  • Applies to: DV 4.0
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Plesk administrator access

 

Overview

This article shows you how to install Node.js on your Media Temple DV with Plesk. Node.js is a very popular server side JavaScript runtime using Chrome's V8 engine. Installing Node.js and launching your JavaScript applications is a very easy process that may be complete in minutes using either the Plesk control panel or via SSH.

Instructions

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.

 node1.png

2. Select Updates and Upgrades from the Plesk column.

node2.png

3. Click on Add/Remove Components. This may take a minute or so to load. 

node3.png

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. 

node4.png

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. 

node6.png

 

Toggle any of the settings by clicking on them. 

node7.png

  • 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.

Resources

Upgrading Plesk
Official Node.js Docs
Plesk docs for Node.js 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk