1. Home
  2. Hosting
  3. cPanel Hosting
  4. NodeJS on OrangeWebsite’s Shared Servers

NodeJS on OrangeWebsite’s Shared Servers

OrangeWebsite.com fleet of Shared Servers run on CloudLinux with WHM/cPanel. This allows our Technical Support Team a fast and reliable way to manage shared servers more easily, compared to running CLI on a server terminal.

This article assumes you are already logged into your cPanel account, if you do not already know how, please review How To Change Your Password as it will teach you how to log in from your client area.

All our Shared Hosting servers are equipped with NodeJS, they can be managed by either cPanel or Cloudlinux, below we will go into both ways of deploying an NodeJS app in our environment.

NodeJS on CloudLinux

At OrangeWebsite all of our shared servers come equipped with NodeJS supported by the Cloudlinux environment, thus we support all available versions they support, see the image below:

(The versions change based on CloudLinux support automatically)

How to Deploy a Node.js app using Cloudlinux

Below is an example of how to deploy a Node.js application in your Shared Hosting plan via cPanel.

  1. Now that we are logged into our cPanel, let’s click the Setup Node.js App icon under Software.

  2. Once we’re inside we can start by clicking the Create Application

  3. Now comes the important part, where we are going to place our application, what root directory will it reside in and what is the full path to it, it’s important to know that you do not have to generate the app.js yourself, all you need to decide is 2 parameters, the directory, and the URL. In our example below, I am placing the application in my /public_html/myapp

    Application root: /public_html/myapp
    Application URL: [mydomain.tld]/myapp



    (NOTE: If you create a Subdomain first, you can always set the application root to just “myapp” and the application url to the subdomain directly, this would create the application in your subdomain)

    When you are ready, click Create and you are done creating the application.
  4. We can verify the app is properly created in our cPanel > FileManager (see image below)


    So far so good.
  5. Now that we can see it works, we can see in the Setup Node.js App when we look at the image below, the application is running, it’s set to Development mode, you u can set this to Production when ready.



    Of course, this is just a basic app, now you need to create a package.json file if you wish to add using the Run NPM Install to create a so-called “node_module” folder with all the required modules to run in your app, but that is outside the scope of this article.
  6. To test if your node application works, click the Open button next to the Application URL and you should see something like this (see image below)


    If you do see something like this, you have successfully created a nodeJS-based app.

    Read more about the package.json creation part here:

    Creating a Package JSON File

    Deploying a Node.js Application in cPanel on a Subdomain

    That is all!.

How to Deploy a Node.js app using cPanel

If you are here because you would like to deploy a Node.js application on your own non-CloudLinux server, a standard AlmaLinux-based server, there is a guide on cPanel extensive on how to do so here.

How to Install a Node.js Application

It’s important to know, to use this method, you need your own cPanel server with root access, and you need to be able to install all required requisites. There is not much we can write about this as cPanel covers this in much greater detail.

Note: NodeJS is known to use a lot of nproc (number of processing units). NodeJS may not be suitable for performing long-running calculations. If required, you may need to purchase a double your resources addon which costs half of your shared hosting plan. However, you may be better of with your own VPS Level 2 or higher with WHM/cPanel option.

Not a customer? Did you like this knowledgebase article?
If you did like this knowledgebase article and are not currently a customer but are looking for a trusted offshore host, feel free to browse what we have to offer over at OrangeWebsite. We have products that fit everyone from individuals to small, medium, and big-sized businesses. We just might be what you are looking for.

Updated on July 29, 2024
Was this article helpful?

Related Articles