Running node.js applications
Forum
  1. Forums
  2. General
  3. General Discussion
  1. Nuno Leite
  2. Wednesday, 06 March 2019
  3.  Subscribe via email
Hi!
I have tried to run node.js application but it's giving error 500. Can you help?

I have the application configured (see screenshot).
Image 3.png

- Running the subdomain feed.xxx.com it return with 500 error.
- Running the link http://www.xxx.com/feed returns the same error code 500.

I tried to run the "Run NPM Install" but it returns the error that it's in the screenshot
Image 2.png

Am i missing something?

Thanks
Nuno Leite
Attachments (3)
Rate this post:
  1. 14.03.2019 12:03:26
  2. # 1
Igor Ghertesco Accepted Answer
Posts: 146
Joined: 07.08.2015
0
Votes
Undo
Hello,

Please submit a ticket to https://cloudlinux.zendesk.com, so we could take a closer look.

Thank you.
  1. 18.03.2019 09:03:31
  2. # 2
Nuno Leite Accepted Answer
Posts: 4
Joined: 30.08.2018
0
Votes
Undo
Hi!

I have found that enabling mod_passenger the app.js runs. It has some bugs, but maybe it's related with the app itself.
Does the node.js only works with mod_passenger?

The mod_passenger is incompatible with mod_userdir and we are using mod_userdir to build new websites while they are not online.

So we have a problem here with these two apache modules being incompatible.

Is there an alternative? Is there a way to run node.js without mod_passenger?

This does not invalidate the Error shown in "image 2.png" when we run NPM Install, this always happens.

Thanks
Nuno Leite
  1. 18.03.2019 11:03:57
  2. # 3
Igor Ghertesco Accepted Answer
Posts: 146
Joined: 07.08.2015
0
Votes
Undo
Hello,

Does the node.js only works with mod_passenger?

Correct, mod_passenger is required to run Node.JS apps: https://docs.cloudlinux.com/overview__requirements.html
  • 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
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.