Skip to content
  • About us
  • Blog |
  • Contact Sales |
  • Knowledgebase |
  • Login Webmail
ORC Webhosting Logo
  • Home
  • Hosting
    • Premium web hosting
    • Easy Web Hosting
    • Homepage construction kit SitePad
    • Roundcube WebMail
    • Free website migration
  • Domains
  • VPS Server
  • en_USEnglish
    • de_CHDeutsch
    • it_ITItalian
    • es_ESSpanish
    • fr_FRFrench
    • pt_PTPortuguese
    • ukUkrainian
ORC Webhosting GmbH Landquart/Switzerland
Customer Login

Knowledgebase

Learn how to use our web hosting services with full power in an easy-to-understand way.

Most searched category emailcpanelsshdnsdomains

Databases

9
  • What is the MySQL hostname?
  • How to reduce the size of the database?
  • How to export a database with phpMyAdmin?
  • Repair database via phpMyAdmin in cPanel
  • How do I create a database user in cPanel?
  • How can I check the size of my website's database?
  • What is PHPMyAdmin and where can I access it?
  • How to create a MySQL database with cPanel
  • How to import a database with phpMyAdmin?

Video instructions

16
  • How do I change the PHP version in cPanel?
  • How to export a database with phpMyAdmin?
  • How do I find my cPanel password?
  • Repair database via phpMyAdmin in cPanel
  • How do I manage the DNS zones for my domains in cPanel ?
  • How do I create a database user in cPanel?
  • How do I install WordPress with the cPanel Toolkit?
  • How to create email accounts in cPanel?
  • How to manage domain redirections in cPanel?
  • How do I manage my domains in cPanel?
  • How do I change the email password?
  • How can I enable gzip compression?
  • How do I reset my cPanel password?
  • How can I log in to the cPanel?
  • What is web hosting?
  • How to create a MySQL database with cPanel

Files

8
  • How do I create an FTP account in cPanel?
  • How do I create a phpinfo file?
  • What is FTP?
  • How do I transfer files with FileZilla FTP Client?
  • Editing the Hosts file on your Mac
  • How do I use the file manager?
  • How to manage storage space usage in cPanel
  • How do I connect with FileZilla?

cPanel

39
  • How do I password protect a directory in cPanel?
  • How do I enable/disable mod_security in cPanel?
  • How can I restore a backup?
  • How to install web applications with Softaculous autoinstaller in cPanel
  • How do I set up a Node.js application in cPanel?
  • How do I protect my .htaccess file?
  • WordPress Manager of Softaculous
  • What are subdomains? Use and advantages
  • Using the "Manage team" in cPanel
  • WordPress staging: set up a test environment
  • How are hidden files displayed in CPanel file manager?
  • Connection between the main domain and an additional domain
  • How to create a MySQL database with cPanel
  • How do I use the file manager?
  • How do I manage my domains in cPanel?
  • How to manage domain redirections in cPanel?
  • What is PHPMyAdmin and where can I access it?
  • How to create email accounts in cPanel?
  • Manage email addresses in cPanel
  • How can I check the size of my website's database?
  • How do I install WordPress with the cPanel Toolkit?
  • How do I create a database user in cPanel?
  • How to reduce the size of the database?
  • How to manage storage space usage in cPanel
  • Create email forwarding in cPanel
  • Create email autoresponder in cPanel
  • Track email delivery in cPanel
  • How do I change the PHP version in cPanel?
  • How do I manage the DNS zones for my domains in cPanel ?
  • Repair database via phpMyAdmin in cPanel
  • How do I create a DMARC entry with cPanel?
  • How to export a database with phpMyAdmin?
  • How do I find my cPanel password?
  • How do I change the email password?
  • How can I enable gzip compression?
  • How do I reset my cPanel password?
  • How can I log in to the cPanel?
  • htaccess redirects and rewrite rules
  • What is the difference between the Customer Center and the cPanel?

Domains

18
  • ccTLD
  • A-Record
  • What is an Administrative Contact
  • EPP Code: Comprehensive explanation and meaning for domain transfers
  • DNS propagation domain changes
  • How do I transfer a domain to ORC Webhosting?
  • DNS Management in the Customer Center
  • How long does it take for my domain to point to my website?
  • What is a domain?
  • When does a domain expire?
  • What is WHOIS?
  • What is domain parking?
  • What are subdomains? Use and advantages
  • All about domain transfer
  • How do I manage the DNS zones for my domains in cPanel ?
  • How to manage domain redirections in cPanel?
  • How do I manage my domains in cPanel?
  • What are my nameservers?

eMail

13
  • How to set up an email signature on iPhone?
  • How do I set up my email in Outlook?
  • How are email filters managed in cPanel?
  • Set up email on iPhone
  • Mail SPF Check Failed
  • How do I manage the global email filters in cPanel?
  • Manage email addresses in cPanel
  • Create email forwarding in cPanel
  • Create email autoresponder in cPanel
  • Track email delivery in cPanel
  • How do I create a DMARC entry with cPanel?
  • How to create email accounts in cPanel?
  • How do I change the email password?

Customer Center

11
  • How do I contact ORC Web Hosting Support?
  • Why has my web hosting been blocked?
  • How can I restore a backup?
  • ORC Web Hosting Customer Center Overview
  • Access to ORC Webhosting customer area
  • How do I transfer a domain to ORC Webhosting?
  • DNS Management in the Customer Center
  • How do I find my cPanel password?
  • How do I reset my cPanel password?
  • What is the difference between the Customer Center and the cPanel?
  • What are my nameservers?

Wordpress

33
  • Web design and SEO: How to optimize your website
  • How to turn a multi-site into a single-site
  • WordPress Child Theme and how to create one
  • Understanding the persistent object cache: when it is important and when it can be ignored
  • What is a WordPress plugin and how do I install a new plugin?
  • How do I manage users in WordPress?
  • Configure general settings in WordPress
  • How do I install WooCommerce?
  • How to use Yoast SEO in WordPress
  • How can I create and manage new menus in WordPress?
  • How to create new blog posts in WordPress
  • How to edit the header image in WordPress
  • How can I change the admin password in WordPress?
  • How to create categories and subcategories in WordPress
  • To configure the WordPress media settings
  • Install a new WordPress theme
  • How do I protect my .htaccess file?
  • WordPress Manager of Softaculous
  • What is a permalink in WordPress?
  • What is the Navigator in Elementor
  • WordPress SMTP: How to set up SMTP for sending emails
  • The importance of functions.php in WordPress
  • What is a pingback in WordPress?
  • Fixing 404 errors after customizing WordPress permalinks
  • The 10 most common errors in WordPress and how to fix them
  • The integration of AI with the AI Engine plugin
  • What is a category in WordPress?
  • What is a featured image in WordPress?
  • What is an absolute path in WordPress?
  • Deactivate WP-Cron for faster performance
  • Favicons in WordPress: How to increase your brand presence
  • WordPress staging: set up a test environment
  • How do I install WordPress with the cPanel Toolkit?

Miscellaneous

36
  • Linux commands
  • Create a strong password: Here's how to do it right
  • Web design and SEO: How to optimize your website
  • How do I create a phpinfo file?
  • What is FTP?
  • How do I transfer files with FileZilla FTP Client?
  • How do I enable/disable mod_security in cPanel?
  • What is the difference between Google Search Console and Google Analytics?
  • Bounce rate
  • Bitmap graphics
  • Apache
  • What are automatic updates
  • What is an API (Application Programming Interface)?
  • What is AJAX (Asynchronous JavaScript and XML)?
  • What is an Absolute Path
  • VPN Client APP Setup
  • How do you create a favicon?
  • Fixing the site error: "The ionCube PHP Loader must be installed
  • What is IonCube Loader? A comprehensive insight
  • What is meant by gigabyte, megabyte, GB, and MB?
  • What is Leverage Browser Caching?
  • When does it make sense to use JPEG or PNG images?
  • How do I protect my .htaccess file?
  • What is a domain?
  • What is SEO and how does it work?
  • What is DuckDuckGo?
  • How do I clear the DNS cache on the computer?
  • Website creation: costs and breakdown into different areas
  • What is an absolute path in WordPress?
  • How to create perfect screenshots on a Mac
  • Favicons in WordPress: How to increase your brand presence
  • Editing the Hosts file on your Mac
  • How do I change the PHP version in cPanel?
  • htaccess redirects and rewrite rules
  • What is an Uptime Guarantee
  • How do I connect with FileZilla?
  • Home
  • Docs
  • cPanel
  • How do I set up a Node.js application in cPanel?
View Categories

How do I set up a Node.js application in cPanel?

The versatility of Node.js: A look at the flexible integration with cPanel

Node.js application in cPanel: Node.js acts as a dynamic open source JavaScript runtime environment that not only compiles and executes the code on the web hosting server, but also conserves the client computer's resources by minimizing the execution of JavaScript. This innovative approach means that the content of a web page is dynamically prepared before it is sent to the client's web browser.

In order to keep up with the demands of constantly evolving technology, Node.js undergoes a continuous evolution with regular updates and new features. This leads to a short lifespan of Node.js versions, which are split into different branches to meet different requirements.

The challenge for developers is to select and support the right Node.js version for their application. This is where the flexibility of cPanel Cloud SSD Shared Hosting comes into play. With our hosting packages, you have the freedom to choose and set up the right Node.js branch for your project.

In this tutorial we will show you step by step how to use the "Node.js" feature of cPanel to create the optimal environment for your Node.js project to maximize performance and compatibility.

Access to the function: Setup Node.js App in cPanel

As soon as you are in your cPanel accountthe user-friendly interface of cPanel provides you with a comprehensive list of all available functions, which are clearly organized into different function groups. To access the "Set up Node.js app" function, you can either use the search tool provided at the top of the page or search for it in the "Software" function group, as it is included there.

Access to the "Set up Node.js app" function in cPanel
Access to the "Set up Node.js app" function in cPanel

Clicking on this function redirects you to a new page that acts as the default page for the Node.js function in cPanel.

Creating a new Node.js application

To create a fresh Node.js application, simply click on the button "CREATE APPLICATION"which is located in the top right-hand corner of the standard page for the Node.js function. You will then be redirected to a new page where you can configure the settings for your new Node.js application. Here's what you can expect:

  • Node.js version - Select the desired Node.js version on which your project should be based.
  • Application mode - Here you can choose between the "Development" and "Production" modes. Please note that this setting sets the environment variable "NODE_ENV" accordingly.
  • Application master directory - Specify the absolute path to the folder where your application files will be stored. Remember that this is not a relative path and the home folder of your account (/home/) must be used as a prefix.
  • Application URL - Define the URL via which your Node.js application is to be accessed.
  • Application start file - Specify the start file for your application. This is usually either app.js or index.js.
  • Passenger log file - Specify the log file for your Node.js application.

At the end of the list, you will find a separate section called "Environment variables". Here you can define new environment variables or edit existing ones that only apply to this specific application.

Create-a-new-node.js-application
Create-a-new-node.js-application

Once you have completed the configuration, please click on the "CREATE" button located in the top right corner of the page. This will create your Node.js application with the specific Node.js version you have selected. Once the process is complete, cPanel will provide you with a message telling you how to access the virtual environment for this Node.js application.

But what exactly is a virtual environment and why is it important to access it?

Each cPanel web hosting account exists as an independent unit on the web hosting server. This means that each account has access to shared services such as SSH, MySQL, email, etc. However, the binary for Node.js, called "node", is globally available and can only support a single Node.js version - the one that is globally installed on the server.

However, to enable support for multiple Node.js versions, cPanel uses virtual environments. These represent an encapsulation method at application level. A new virtual environment is created for each Node.js application created. Within these environments, cPanel provides separate "node" binary versions so that each application can use the desired Node.js version. You can also define individual environment variables in each virtual environment.

Access to the binaries of the web hosting server is usually done via the SSH protocol. Accessing the virtual environment is no different - you still need to log in via SSH and additionally execute a specific command to access the virtual environment of your Node.js application. This command varies for each application and can be accessed via the application screen in the "Set up Node.js app" function of cPanel.

Copying/pasting this command takes you to the virtual environment for the selected Node.js application. Within the environment, all node commands that you execute are processed by the selected binary version of the node.

node-js-command

In addition to the simple tasks of checking the node version and running your Node.js application, you can also use npm to manage your application's dependencies if you have included a package.json file in the application. You can also define various environment variables that are only available to the application that uses this virtual environment.

Manage your Node.js applications

Now that you know how to create your Node.js applications, let's take a look at what management actions you can perform with them. If you return to the default page for the "Set up Node.js app" function, you will find a list of all the Node.js applications currently created. The following information is displayed for each of these applications:

  • App URI: The URI via which the application can be accessed.
  • App root directory: The directory in which the application is saved.
  • Mode: The mode in which the application is executed.
  • Status: The current status of the application.
  • Actions: The management actions you can perform for each of the applications.

These actions include:

  • Stopping the application
  • Restarting the application
  • Editing the application
  • Delete the application
Manage your Node.js applications
node.js app in cpanel

If you click on the "App URI", cPanel will forward you directly to the front end of your application so that you can get a preview in the web browser.

Another important area for managing your application is the "Edit" link, which is represented by a pencil-like icon. Clicking on it takes you to a new page where you can make various configuration changes for the selected application.

On this new page you will see three buttons at the top:

  • "DESTROY": You can use this button to completely delete the application and its configuration.
  • "CANCEL": Click here to return to the default page for the "Set up Node.js app" function, where all your Node.js applications are listed.
  • "SAVE": If you have made changes to the configuration, you can save them here.

Directly below these buttons you will find the command to access the virtual environment of this particular Node.js application. Below this are the "STOP APP" and "RESTART" buttons, which you can use to stop or restart the application if required.

Further down the page, you will see the default configurations for the application that you specified when creating it. Below this is the "Recognized configuration files" section, in which you can execute the "npm install" command, for example, if the package.json file is saved in the root folder of the application.

Finally, you will find the "Environment variables" section on this page, where you can add, edit or remove environment variables.

To manage your Node.js applications effectively, it is important to understand how the "Set up Node.js app" function works. If you have any questions or problems with this function, our technical support will be happy to help you further.

What are your Feelings
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on May 22, 2024
How to install web applications with Softaculous autoinstaller in cPanelHow do I protect my .htaccess file?

Powered by BetterDocs

Table of Contents
  • How do I set up a Node.js application in cPanel?
    • The versatility of Node.js: A look at the flexible integration with cPanel
      • Access to the function: Setup Node.js App in cPanel
      • Creating a new Node.js application
      • But what exactly is a virtual environment and why is it important to access it?
      • Manage your Node.js applications
ORC-Webhosting-Logo-qhfhur368wc1c2jac4dy7yugiqdkc1u9xs42kklf9w-3.png

ORC Webhosting offers powerful hosting with fast performance and reliable service for your online business.

Hosting & Domains
  • Cheap web hosting
  • Wordpress hosting
  • Website Builder
  • Register domains
  • Domain transfer
  • Domain-Whois
  • Cloud VPS Server
Service
  • Customer center login
  • Create account
  • Test winner support
  • Customer reviews
  • AGB / Data protection
  • Imprint
  • Wir kaufen Webhosting Firmen
Support
Support

© 2002 - 2025 IPS Inc. dBa ORC Webhosting

Certified member of Hosttest.ch

de_CH German
de_CH German
en_US English
it_IT Italian
fr_FR French
es_ES Spanish
pt_PT Portuguese
uk Ukrainian