MKhost Knowledgebase

Need help? Search or browse our large collection of articles on a variety of topics including hosting, domains, emails and more .

Hosting platforms, hosting packages information, questionsDomain registration, transfer, DNS ServersCreate, e-mail address setupcPanel helpdesk knowledge baseMKhost client areaInformation about email hosting servicesGeneral information
0cPanel

How to set up your Node.js application via cPanel

If you have a Node.js web application, follow these steps to deploy it through cPanel.

1. Create the application in cPanel

OpenSetup Node.js App → Create Applicationand complete the following fields:

  • Node.js version:Select a version supported by your application.
  • Application mode:SelectProductionfor a publicly available application.
  • Application root:Enter the folder where you will upload your files, for example .
  • Application URL:Select the domain or subdomain where your application will run.
  • Application startup file:Enter your application's startup file, for example . Use the filename that matches your application.

ClickCreate.

2. Upload your files

IncPanel → File Manager, open the folder you specified as theApplication root.

Upload your application files. If they are in a ZIP archive, upload it and selectExtract. Make sure the startup file and are in the appropriate location within the application folder.

3. Start the application

ClickRestart, then open theApplication URL.

After changing your code, save the files and clickRestartagain to load the changes.