Control Web Panel

WebPanel => Apache => Topic started by: pipoy on May 09, 2020, 05:18:49 AM

Title: Run Node js with CWP
Post by: pipoy 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.
Title: Re: Run Node js with CWP
Post by: pipoy on May 13, 2020, 12:16:14 AM
Anyone please?
Title: Re: Run Node js with CWP
Post by: evansa on May 13, 2020, 12:29:53 PM
check logs from /usr/local/apache/domlogs/
Title: Re: Run Node js with CWP
Post by: gossy 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?
Title: Re: Run Node js with CWP
Post by: rcschaff on June 02, 2020, 04:59:01 PM
Did you initialize a nodjs project, and configure it's port?
Title: Re: Run Node js with CWP
Post by: kingOf0 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!