Score:0

Running nodejs with next on WHM cpanel

bf flag

im trying to deploy a next app to a cpanel hosting. I've followed the instructions given in cpanels documentation almost to the letter

https://docs.cpanel.net/knowledge-base/web-services/how-to-install-a-node.js-application/#register-the-application

I'm able to get it running and working as intended if I run node under the root account and have registered the application. But as I understand it, it should be working simply by registering the application. After alot of trial an error, I suspect that the problem has to do with permissions somehow, since when I run the app with node under the user account

node app.js

I get:

info  - Loaded env from /home/lajarase/next/.env
info  - SWC minify release candidate enabled. https://nextjs.link/swcmin

But right after it exits the execution

Davidw avatar
in flag
Questions involving web hosting control panels are off-topic because they customize their systems so that standard system administration methods no longer apply. Some related topics may be asked on Webmasters or see Where can I ask questions about web hosting control panels?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.