Samet Chan

Well-Known Member
Jun 24, 2016
359
32
103
cPanel Access Level
Root Administrator
Twitter
Hi @Sametto Chan,

There's no support for using Node.js with cPanel & WHM at this time, however I encourage you to vote for the following feature request:

nodejs Hosting

The top comment provides an update on the status of this request.

Thanks!
Thanks for your feature link! I'm not asked to that question. It is just my friend want to ask a question about this. I'll enter for English Grammarly better.
Benny said:
If the stars don't align we won't see this feature before early 2018, but I should be able to give you an updated timeline by the middle of September. I'll be back then to tell you how things are going!
1. How long will available Node JS on cPanel/WHM?

2. Will be available to EasyApache 4 right?
 

Nirjonadda

Well-Known Member
May 8, 2013
724
27
78
cPanel Access Level
Root Administrator
You can install node from the EPEL Repository, I am using node in CentOS 7 with EA4

Install Node from the EPEL Repository

Code:
sudo yum install epel-release
Now that you have access to the EPEL repository, you can install Node.js using your regular yum commands:

Code:
sudo yum install nodejs
Once again, you can check that the installation was successful by asking Node to return its version number:

Code:
node --version
Many people will also want access to npm to manage their Node packages. You can also get this from EPEL by typing:

Code:
sudo yum install npm
 
  • Like
Reactions: Sametto Chan

Samet Chan

Well-Known Member
Jun 24, 2016
359
32
103
cPanel Access Level
Root Administrator
Twitter
@Nirjonadda,

"sudo yum install epel-release"
Downloading packages:
epel-release-7-9.noarch.rpm | 14 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-9.noarch 1/1
Verifying : epel-release-7-9.noarch 1/1

Installed:
epel-release.noarch 0:7-9

Complete!

"sudo yum install nodejs"
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : http-parser-2.7.1-3.el7.x86_64 1/4
Installing : 1:libuv-1.10.2-1.el7.x86_64 2/4
Installing : 1:npm-3.10.10-1.6.11.1.1.el7.x86_64 3/4
Installing : 1:nodejs-6.11.1-1.el7.x86_64 4/4
Verifying : 1:libuv-1.10.2-1.el7.x86_64 1/4
Verifying : 1:nodejs-6.11.1-1.el7.x86_64 2/4
Verifying : http-parser-2.7.1-3.el7.x86_64 3/4
Verifying : 1:npm-3.10.10-1.6.11.1.1.el7.x86_64 4/4

Installed:
nodejs.x86_64 1:6.11.1-1.el7

Dependency Installed:
http-parser.x86_64 0:2.7.1-3.el7 libuv.x86_64 1:1.10.2-1.el7 npm.x86_64 1:3.10.10-1.6.11.1.1.el7

Complete!
"node --version"

"sudo yum install npm"
Package 1:npm-3.10.10-1.6.11.1.1.el7.x86_64 already installed and latest version
Nothing to do
Just installed, then? :)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
1. How long will available Node JS on cPanel/WHM?

2. Will be available to EasyApache 4 right?
1. There's no time frame on official support for Node.js. I encourage you to subscribe to the feature request for updates on it's progress.

2. Yes, it would work with EasyApache 4.

Thank you.
 
  • Like
Reactions: Sametto Chan

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Can you run Apache & nginx together on the same server?

And, will nginx automatically load .js files, without the user needing to run "node script.js" somehow?
Hello @SoftDux,

I can't speak to the functionality of any third-party Nginx plugins that include NodeJS support. Until the existing feature request is implemented, my advice is to use CloudLinux with the NodeJS Selector feature that was released a couple of months ago:

Node.js Selector is now in production!

Thank you.
 

Samet Chan

Well-Known Member
Jun 24, 2016
359
32
103
cPanel Access Level
Root Administrator
Twitter

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Did she say soon release late v72 version or later version?
There's no specific time frame to offer on the inclusion of support for NodeJS with cPanel & WHM at this time (the feature request only notes that it definitely won't exist before 72). We'll update that feature request with new information as it becomes available.

Thank you.
 

SoftDux

Well-Known Member
May 27, 2006
1,024
5
168
Johannesburg, South Africa
cPanel Access Level
Root Administrator
Last edited: