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.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!
1. How long will available Node JS on cPanel/WHM?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!
sudo yum install epel-release
sudo yum install nodejs
node --version
sudo yum install npm
You should give proper credit for that post where you got from:I am using node in CentOS 7 with EA4
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!
"node --version"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!
v6.11.1
Just installed, then?Package 1:npm-3.10.10-1.6.11.1.1.el7.x86_64 already installed and latest version
Nothing to do
1. Nginx with cPanel is not supported on .htaccess right?You can use a nginx plugin for cPanel that support nodeJS
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.1. How long will available Node JS on cPanel/WHM?
2. Will be available to EasyApache 4 right?
Thanks for being so understanding questions! I'll keep getting know this. Just I can't wait1. 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.
Can you run Apache & nginx together on the same server?You can use a nginx plugin for cPanel that support nodeJS
Hello @SoftDux,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?
Did she say soon release late v72 version or later version?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.
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.Did she say soon release late v72 version or later version?
Can one run supervisor on in order to automatically reload any changed code?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.
Hello @SoftDux,Can one run supervisor on in order to automatically reload any changed code?