Browsing from the Gulf?تصفّح الموقع بالعربية
White Friday offerHosting, reseller & web design: save up to 40% · ends November 30
--days: --hrs: --min: --sec
View deals
العربية Client Area

How to Run a Node.js App on cPanel Hosting Without a VPS

PlaneHost team 2 min read
How to Run a Node.js App on cPanel Hosting Without a VPS

Many projects now include a Node.js piece: an API, a WhatsApp bot or a small dashboard. The good news is you can run these apps on the same cPanel hosting, without buying a dedicated server.

Before you start

  • Make your app read its port from the PORT environment variable instead of a fixed number.
  • Prepare a package.json with your dependencies.
  • Know your entry file, such as app.js or server.js.

Steps

  1. Upload the app to a folder outside public_html using File Manager or Git.
  2. In cPanel, open the Node.js app tool (Setup Node.js App).
  3. Create an application: pick the Node version, app folder, domain or URL and entry file.
  4. Run the package install to execute npm install.
  5. Add environment variables, such as API keys, on the same screen rather than in code.
  6. Start the app and open the URL to confirm.

Let the assistant help

In the Meridian interface you can ask the AI assistant "why isn't my app starting?" or "where is the error log?" and it points you to the right place.

When do you need a VPS?

  • The app needs high, guaranteed resources around the clock.
  • You need custom system software or Docker.
  • You expect many concurrent users or heavy WebSocket traffic.

In those cases a VPS fits better. For light and medium apps, cPanel hosting is enough and costs less.

Ready to launch your site?

Pick the hosting term that suits you — the first-invoice discount and the renewal price are shown before checkout.