New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Run Node js with CWP

Started by pipoy, May 09, 2020, 05:18:49 AM

Previous topic - Next topic

pipoy

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.

pipoy


evansa

check logs from /usr/local/apache/domlogs/

gossy

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?

rcschaff

Did you initialize a nodjs project, and configure it's port?
Google Hangouts:  rcschaff82@gmail.com

kingOf0

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!