Operating System & Version
CENTOS 7.9
cPanel & WHM Version
v94.0.4

Ahsanul Hoque

Registered
Aug 1, 2018
2
0
1
Bangladesh
cPanel Access Level
Website Owner
Hello All,
I follow the cPanel instruction docs How to Install a Node.js Application | cPanel & WHM Documentation

Can anyone help me, I have installed nodejs (ea-nodejs10). and try to test some node application.
It works/runs when I only run the code on the terminal
"/opt/cpanel/ea-nodejs10/bin/node app.js"
but when I close the terminal the NODE application does not run.

To run the Node App automatically, follow the instruction given on cPanel docs

"export PATH=/opt/cpanel/ea-nodejs10/bin/:$PATH"
and add it my .bashrc file: but my node does not work. Also include Application Manager to show the Node path.

HOW SHALL I RUN MY NODE Automatically, SO that I can use my node app in my hosting server????

Thanks and Regards
@Ahoque
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,836
597
273
cPanel Access Level
Root Administrator
Hey there! You will need to register the application and create a custom startup file as outlined here:


Can you try that and see if that gets things working?