50% Off Web Hosting - From $60 per year
0D
0H
0M
0S

Knowledgebase

Get answers and information for common questions.

Setting up a NodeJS Application

NOTE: This guide is tailored for Node.js developers who are looking to start working with cPanel.

Setting up a Node.js application in cPanel is straightforward and can be done by following these steps:

  1. Access your cPanel account.

  2. Locate and select the Node.js App option under Software.

    uploaded image

  3. Click on Create Application.

    uploaded image

  4. Choose Node.js Version: You have the option to select from the available versions in the drop-down menu.
  5. Application Mode: Development and Production modes are available.
  6. Application Root: Define the file/folder path for your application.
  7. Application URL: Specify the URL where your application will be accessed from.
  8. Application Startup File: Enter the desired name for your application's main startup file.
  9. Passenger Log File: Set the filename for the Apache Passenger Log file.

    uploaded image

  10. Click on Create.

Managing Your Application via Terminal

cPanel provides a virtual environment for your Node.js application, which you can access through SSH using the following steps:

  1. Log in to your cPanel account.

  2. Go to the Node.js App under Software.

  3. Click on the Edit option (the pencil icon) next to your application.

  4. Locate the command starting with source next to "Enter the virtual environment. To enter the virtual environment, run the command" and copy it.

  5. Access your account via SSH.

  6. Run the copied command to enter the Node.js application's virtual environment.

Have Questions?

Get in touch now via instant live chat or hit up our contact form and we'll be in touch as soon as possible.

Let's Chat
customer support repp at a desk