BigCloudy KnowledgeBase BigCloudy KnowledgeBase
  • Cloud Hosting
    • cPanel Hosting
    • Laravel Hosting
    • Node.js Hosting
    • Magento Hosting
    • Django Hosting
    • Reseller/Agency Hosting
    • SSL Certificates
  • WordPress
    • WordPress Hosting
    • WooCommerce Hosting
  • VPS & Dedicated Server
    • Linux VPS Hosting
    • Windows VPS
    • Forex VPS Hosting
    • SEO VPS Hosting
    • n8n VPS Hosting
    • Dedicated Servers
  • AI Website Builder
Log in
BigCloudy KnowledgeBase BigCloudy KnowledgeBase
Log in
BigCloudy KnowledgeBase BigCloudy KnowledgeBase
  • Cloud Hosting
    • cPanel Hosting
    • Laravel Hosting
    • Node.js Hosting
    • Magento Hosting
    • Django Hosting
    • Reseller/Agency Hosting
    • SSL Certificates
  • WordPress
    • WordPress Hosting
    • WooCommerce Hosting
  • VPS & Dedicated Server
    • Linux VPS Hosting
    • Windows VPS
    • Forex VPS Hosting
    • SEO VPS Hosting
    • n8n VPS Hosting
    • Dedicated Servers
  • AI Website Builder
  • banner shape
  • banner shape
  • plus icon
  • plus icon
Uncategorized

How to restart a Node.js app via PM2 in cPanel (Zero Downtime)

3 minutes
9 Views
Share

Copy link

Docy theme

Recently, a developer friend of mine was panicking because his Node.js app crashed on a cPanel shared server. Like many developers would want to do, they wanted a quick way to restart Node.js app in cPanel, fix the bug that caused the crash, then restart Node.js app without downtime. Fortunately, PM2 came to the rescue with its app, and with auto-restart capabilities, it becomes easy to auto-restart Node.js app using PM2 and can run it smoothly without downtime. In this guide, we will show you how to use PM2 to fix Node.js app crashes in cPanel and keep your app online.

Prerequisites to restart Node.js application with PM2:

  • Node.js app deployed:
    Your Node.js application should now be uploaded and actively running on your server! PM2 works best with apps that are already deployed properly and ready for production
  • VPS or dedicated server:
    To restart a Node.js application using PM2, you need full control of that server. This process will not work on shared hosting, as it requires root-level access.
  • Terminal access:
    To perform PM2 commands, connect to your server using the terminal
  • PM2 installed:
    PM2 should be installed worldwide using the following command:
    npm install -g pm2

Restart Node.js App via cPanel (Shared Hosting)

1. Log in to cPanel.

cPanel login dashboard

2. Go to the software section and click on the setup Node.js app.

Panel dashboard showing the Software section with the ‘Setup Node.js App’ option highlighted for configuring Node.js applications

3. You can click on the Restart button to relaunch the application.
OR
4. Edit the application environment created in cPanel by clicking the Edit option and copying the virtual environment URL.

ode.js App Manager in cPanel displaying a deployed application with its URL, root directory, status, and an edit button highlighted
Edit application screen in cPanel for a Node.js app, showing version, environment settings, and the virtual environment activation command highlighted at the top

5. Go to Terminal (under Advanced options), and paste the activation command

Steps to Restart a Node.js App Using PM2:

Step 1: Connect via terminal:
Log on to your server using a terminal

Step 2: Check running apps with pm2 list:
This command displays a list of all PM2-managed apps along with their status.

Step 3: Restart the app with pm2 restart app_name
Replace app_name with your app name or ID from the list.

Step 4: View logs with pm2 logs app_name:
Check if the app restarted correctly and look for any errors.

Enable Auto-Restart on Reboot (Optional)
Run pm2 startup

  • Configures PM2 to launch applications automatically upon server reboot.
    Then, save the config with’ pm2 save’.
  • Saves your current app list so PM2 knows what to restart.

With Big Cloudy hosting, you can quickly restart your Node.js app in cPanel and keep it online without interruption. Our hosting platform fully supports PM2, allowing you to easily auto-restart Node.js apps using PM2 and keep them online. No more downtime—Big Cloudy gives you the tools that you need to fix Node.js app crashes in cPanel and run your projects 24/7.

Leave a Comment Cancel reply

Cloud Hosting

cPanel Hosting
Laravel Hosting
Node.js Hosting
Magento Hosting
Django Hosting
WordPress Hosting
WooCommerce Hosting
Reseller / Agency Hosting

Cloud VPS & Server

Linux VPS Hosting
Windows VPS Hosting
Forex VPS Hosting
SEO VPS Hosting
n8n VPS Hosting
Dedicated Server

Addons

Domain
SSL Certificates
AI Website Builder
Affiliate Program

Company

About Us
Contact Us
Blog
Knowledge Base
Sitemap
Status

Legal

Privacy Policy
Terms of Service
Refund Policy
Affiliate TOS

Follow Us

Facebook X-twitter Instagram Linkedin

Copyright Ⓒ 2026 BigCloudy Internt Services Pvt. Ltd. All Rights Reserved

How to restart a Node.js app via PM2 in cPanel (Zero Downtime)

Or copy link

Clipboard Icon