Skip to Content
Shared hosting (cPanel)Using cPanelSoftware

Node.js and Python apps

The Setup Node.js App and Setup Python App tools in the Software section run your application on the version you choose and map it to a URL on your domain, without you needing a VPS.

Available versions

LanguageVersions
Node.js6 through 26, including 20, 22 and 24
Python2.7, and 3.3 through 3.13

Choose the latest version your application supports; for Node.js, long-term support (LTS) versions are preferable.

Create a Node.js application

Upload your application files to a directory outside public_html, such as myapp, using the File Manager or Git.

Open Software → Setup Node.js App and click Create Application.

Fill in the fields:

  • Node.js version: The version.
  • Application mode: Production for a live site, or Development for testing. This sets the NODE_ENV variable.
  • Application root: The directory you uploaded the application to.
  • Application URL: The domain and path the application opens on.
  • Application startup file: The startup file, such as app.js or server.js.
  • Environment variables: The environment variables your application reads (API keys and database credentials).

Click Create. Then click Run NPM Install on the application page to install the packages from package.json.

The Node.js application creation form in cPanel

Don't set a port in your application

The server forwards requests to your application itself. If your application needs a port value, use process.env.PORT, and don't hard-code a port number in your code.

Create a Python application

The steps are the same, from Software → Setup Python App, with two fields that differ:

  • Application startup file: The WSGI file, such as passenger_wsgi.py.
  • Application Entry point: The name of the WSGI object in that file, usually application.

After creating the application, click the virtual environment activation command shown at the top of the application page to copy it, run it in the Terminal, and install the packages:

pip install -r requirements.txt

Manage the application

From the application list, you can stop and start the application (Stop and Start), restart it after every code change (Restart), and edit its settings or delete it.

Resource limits

Applications run within your plan's resource limits (memory and number of processes). Heavy applications, or ones that need persistent connections (WebSocket), are better suited to a VPS. Monitor your usage in Resource usage.

How is this guide?

On this page