Author Topic: Run Node js with CWP  (Read 8491 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Run Node js with CWP
« on: May 09, 2020, 05:18:49 AM »
I followed this guide to install node js

https://wiki.centos-webpanel.com/how-to-install-and-setup-node-js-on-cwp

After this part
Configure webservers for domain to be used for nodejs Application:
CWP.Admin left Menu -> Webserver settings -> Webserver Domain Conf -> Select Username -> Select Domain/Subdomain -> create configuration -> select any option with (custom port) -> check the box – Rebuild webserver conf for domain on save -> Enter port number you have used in the application for the custom port, leave IP as 127.0.0.1 -> save changes


I get Service Unavailable.

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Anyone here knows how to solve this?

My application requires LAMP.

I deployed a brand new server with just CWP just to see what's the issue. Same thing.

So i must be missing 1 step or CWP is creating this error.
« Last Edit: May 09, 2020, 05:33:12 AM by pipoy »

Offline
*
Re: Run Node js with CWP
« Reply #1 on: May 13, 2020, 12:16:14 AM »
Anyone please?

Offline
**
Re: Run Node js with CWP
« Reply #2 on: May 13, 2020, 12:29:53 PM »
check logs from /usr/local/apache/domlogs/

Offline
*
Re: Run Node js with CWP
« Reply #3 on: June 02, 2020, 03:21:15 PM »
I am getting the same error. please note I open a port for 8181 as I used, still problem is exist. can any one help?

Offline
****
Re: Run Node js with CWP
« Reply #4 on: June 02, 2020, 04:59:01 PM »
Did you initialize a nodjs project, and configure it's port?
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: Run Node js with CWP
« Reply #5 on: November 29, 2023, 09:12:48 PM »
Sorry for necro-posting but here's a solution.

I think the problem is on NAT systems.

Just listen your private ip on your node app. (source code)
and modify your vhost template to listen your private ip (Manage WebServers Configuration)

https://imgur.com/a/dJlAkId (This is my first post and I'm not sure if posting images with imgur is allowed. But I couldn't upload images here)

Then it will work fine!