Node JS application manager error

Ragil

Registered
Jun 17, 2019
1
0
1
Indonesia
cPanel Access Level
Root Administrator
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello @Ragil,

Can you verify the file name you are using for your application?

The app.js file is the application's default startup file. We recommend that you create the file with this exact name because Passenger searches for this filename when it executes.

If you need to use a filename other than app.js as the application's default startup file, you must manually edit the following files:

/etc/apache2/conf.d/userdata/ssl/2_4/$username/$domain.tld/$nodejsapp.conf
/etc/apache2/conf.d/userdata/std/2_4/$username/$domain.tld/$nodejsapp.conf
Replace the entries with the $ symbol in the file paths quoted above with the actual names associated with your specific account, domain, and application.

You must open the above files in the command line text editor of your preference and add the following entries (replace index.js with the name of your preference):

PassengerStartupFile index.js
PassengerAppType node
Let me know if this helps.

Thank you.