IMPORTANT: This is an advanced guide, and is intended to help Node.js application developers get started. cPanel supports the ability to create a Node.js application. Here are the steps:
  1. Log in to cPanel.
  2. Click on Setup Node.js App under Software.
  3. Click Create Application.
  4. Input the details for the application:
    1. Node.js Version: You can choose from any of the available versions in the drop-down menu.
    2. Application Mode: Development and Production modes are available.
    3. Application Root: Here is where you determine the file/folder path to your application.
    4. Application URL: This is where you decide what URL your application will be accessed from.
    5. Application Startup File: This is where you input the name you want for your application’s main startup file.
    6. Passenger Log File: This will be the filename for the Apache Passenger Log file.
  5. Click Create.

Managing your application via SSH

cPanel provides you with the virtual environment for your Node.js application, which you can access via SSH. Here are the steps:
  1. Log in to cPanel.
  2. Click on Setup Node.js App under Software.
  3. Click the Edit option next to your application (the pencil icon).
  4. Next to “Enter to the virtual environment. To enter to virtual environment, run the command”, you will see the command that starts with the word source. Copy the command.
  5. Log in to your account via SSH.
  6. Run the command provided; this will load you into the Node.js application’s virtual environment.