Forum
  1. Forums
  2. General
  3. General Discussion
  1. eminos
  2. Sunday, October 07, 2012
  3.  Subscribe via email
Hi,

I'm running CloudLinux with cPanel, and have multiple clients/users in a production/hosting environment on the server and I would like to enable them to use node.js on their accounts.

Is this doable?

One node.js installation? Or one per client/user that they install them selfes from SSH?
How about ports? Can specific ports or port ranges be assigned to specific users on the server? 

Apparently there are packages of Node.js for CentOS:
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager

I googled a lot on this, but couldn't find a lot of information about node.js + cPanel + CloudLinux.

Grateful for help.


/E
Rate this post:
  1. 07.10.2012 21:10:20
  2. # 1
Igor Seletskiy Accepted Answer
Posts: 1191
Joined: 09.02.2010
0
Votes
Undo
It should be possible to run Node.js per customer. The problem -- same as with memcache -- it will be available to everyone. We are planning to create private IP space per customer.
  1. 08.10.2012 04:10:26
  2. # 2
eminos Accepted Answer
Posts: 10
Joined: 07.10.2012
0
Votes
Undo
I don\'t really understand this.
If it\'s possible to run per customer, what does it mean that \"it will be available to everyone\"?

Is there a problem or security risk by giving everyone node.js support?
The resource usage by node.js is still contained per customer by CloudLinux LVE right? So one single customers misuse of node.js shouldn\'t be able to take a server down?
  1. 08.10.2012 15:10:52
  2. # 3
eminos Accepted Answer
Posts: 10
Joined: 07.10.2012
0
Votes
Undo
I tried installing Node.js as a normal user, from within Nave ([url]https://github.com/isaacs/nave[/url]) and it seems to work fine.
I couldn\'t access it from an other user.
Are there some security issues with this approach?


I have some other general concerns around SSH.
I noticed that in order to give a somewhat secure SSH access for my clients I must run VirtFS (Jailed Shell) in cPanel.

What is the difference between cPanels VirtFS and CLs CageFS?
  1. 17.11.2013 10:11:34
  2. # 4
Michael Dance Accepted Answer
Posts: 1
Joined: 17.11.2013
0
Votes
Undo
Sorry to bump the thread, but I would love to see this on CloudLinux. Ghost blogging tool uses it. And ASmallOrange has their own module they made based on Softaculous.
  1. 17.11.2013 15:11:15
  2. # 5
Igor Seletskiy Accepted Answer
Posts: 1191
Joined: 09.02.2010
0
Votes
Undo
Michael,

It will just work out of the box. See previous post.
  1. 17.11.2013 15:11:33
  2. # 6
eminos Accepted Answer
Posts: 10
Joined: 07.10.2012
0
Votes
Undo
Igor,

Yes, it works.
The problem is with the ports and the fact that you as an server admin can\'t delegate specific ports to specific users.
Any user can run node.js and take any free port on the server/shared IP.
Is there plans to implement port delegation in CL?
  1. 17.11.2013 15:11:09
  2. # 7
Igor Seletskiy Accepted Answer
Posts: 1191
Joined: 09.02.2010
0
Votes
Undo
Yes, there are plans like that.
  1. 22.12.2015 06:12:57
  2. # 8
Milutin Kubik Accepted Answer
Posts: 1
Joined: 22.12.2015
0
Votes
Undo
Opening this after few years.
How its looking with that port delegation or private ip or so...

We are looking for some solutions if its possible to offer Node.JS on cPanel
  1. 03.01.2016 12:01:34
  2. # 9
Richard Hordern Accepted Answer
Posts: 219
Joined: 19.03.2011
0
Votes
Undo
I\'m guessing that the technology is already there as kuberdock can manage local IP\'s. Having an IP per user makes more sense than a port per user as this way users can choose any port and just have to know their internal IP.
  1. 01.09.2017 06:09:13
  2. # 10
hendra Accepted Answer
Posts: 0
Joined: 18.01.2018
0
Votes
Undo
i cant use nodejs along with mod_passanger.
anyone success?
  1. 13.09.2017 17:09:10
  2. # 11
Vladimir Accepted Answer
Posts: 45
Joined: 04.07.2017
0
Votes
Undo
Hello,

Yes, it is possible to install Node.js + mod_passenger but the process a bit tricky.

Please submit a ticket to https://cloudlinux.zendesk.com and we will provide you an instruction how to do that.
  1. 14.09.2017 00:09:03
  2. # 12
hendra Accepted Answer
Posts: 0
Joined: 18.01.2018
0
Votes
Undo
yes i have already done that :D
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Remove Upload Files (Maximum File Size: 2 MB)
You may insert polls into your post. The poll would then appear in the post.
Vote Options
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.