Complete Guide to Setting Up a Node.js Environment in cPanel

Complete Guide to Setting Up a Node.js Environment in cPanel

Complete Guide to Setting Up a Node.js Environment in cPanel

Complete Guide to Setting Up a Node.js Environment in cPanel

Deploy and run your Node.js apps easily using cPanel’s Application Manager.

Overview

This guide will walk you through the process of setting up a Node.js environment using the cPanel interface, ideal for Hiverift hosting or any provider with Node.js support through cPanel.

Requirements

  • cPanel account with Node.js support
  • Uploaded Node.js project files (including package.json)
  • Basic familiarity with file structures and npm

Step 1: Access cPanel

  1. Login at https://yourdomain.com/cpanel
  2. Navigate to Setup Node.js App (or Application Manager)

Step 2: Create a New Node.js Application

  1. Click Create Application
  2. Configure the following settings:
    • Node.js version: Select the desired version
    • Application Mode: Set to Production
    • Application Root: e.g., my-node-app
    • Application URL: e.g., https://yourdomain.com/app
    • Startup File: e.g., index.js
  3. Click Create

Step 3: Upload or Edit Your Files

  1. Open File Manager from cPanel
  2. Navigate to your application root directory
  3. Upload or create files including:
    • index.js or app.js
    • package.json

Step 4: Install Dependencies

  1. Back in Application Manager, find your app
  2. Click Open Terminal (or use SSH if available)
  3. Navigate to the app directory:cd my-node-app
  4. Run:npm install

Step 5: Start or Restart the Application

Return to the Application Manager and click Restart. Your app will now run and be accessible via the configured URL.

Tip: Make sure your app listens to the environment port:

const port = process.env.PORT || 3000;

Optional: Manage Environment Variables

  1. Click Edit on your Node.js app
  2. Scroll to Environment Variables
  3. Add variables like:
    • DB_HOST = localhost
    • NODE_ENV = production

Need Help?

Contact dev@hiverift.com for Node.js setup assistance on Hiverift hosting.

© 2025 Hiverift. All rights reserved.

 

Post Your Comment

Build Your Website with HiveRift

From professional business to enterprise, we’ve got you covered!

©2025, Hosting. All Rights Reserved by KhatuShyam Technologies

HiveRift
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.