Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: ClaudiuYTB on May 29, 2021, 12:10:10 PM
-
Hi, i installed Node from CWP Panel, and after i installed my website when i use to test app don't wan't to work anymore.
I unistalled the Node and continue my website don't wan't to work.
Error Screenshot:https://prnt.sc/13jtbat
Error text: Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
-
If your website is a Node.JS app it needs node to be asynchronous - that is the power of Node.JS above other langauges. What is happening is your app sends a request to system and gets no response since there is no Node.
You should reinstall the Node.JS version your app is built on and setup your webserver correctly as explained here - https://wiki.centos-webpanel.com/how-to-install-and-setup-node-js-on-cwp
-
I really don't know what version i set up..
-
I really don't know what version i set up..
Check package.json for engines field you will see node version there OR if you are using version manager like nvm, nodist etc then look at .nvmrc
-
Ok, and where can i find package.json? And after i installed again node how can i remove and my web working?
-
I fix, i re-build the apache and reset the domain apache configuration from Manage WebServers Configuration.
-
I fix, i re-build the apache and reset the domain apache configuration from Manage WebServers Configuration.
Follow this guide - http://wiki.centos-webpanel.com/how-to-install-and-setup-node-js-on-cwp. The webserver conf is last thing you will do.
-
I am too facing the same issue. After installing Node.JS Manager and installing an application, I cannot access my old website using Apache.
I tried rebuilding Apache, Apache with PHP-FPM but still the issue is persisting.