Node.js applications on cpanel

Hello!

I’m trying to make a twitter bot following these instructions

I got it all working pretty well locally and then followed these instructions to get it working on cpanel
https://www.a2hosting.com/kb/cpanel/cpanel-software/create-application-with-nodejs-selector

however I get the error Error
An error occured during installation of modules. The operation was performed, but check availability of application has failed. Web application responds, but its return code “500 Internal Server Error” or content type before operation “text/html; charset=UTF-8” doesn’t equal to contet type after operation “text/html; charset=UTF-8”.

I think it has to do with DNS, or with .htaccess file? I tried a couple of solutions here and there but had no luck so I thought I’d try here before I broke something!

Anything listed in cPanel under Metrics > Errors? An Internal Server Error is usually an Apache error of some kind (but in this case could also be Passenger loading Node via Apache) and cPanel will often try to put a more verbose error in that Errors section. If not you can open a support ticket and we can try to check some other logs. We would just need specifics on how to recreate the issue.

1 Like

thanks for letting me know about the errors section! this let me track it down to a .json being in the wrong directory!

1 Like