There was a problem loading the comments.

Node.jS Setup

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

In Directadmin, to setup a Node.js application, please do the following:

  1. In Directadmin, go to Advanced Features -> Nginx Unit
  2. Click "Create application" to create a new Unit application
  3. Enter the name of the application in the name field
  4. Select "Node.js" as the Type
  5. Select the application's directory in directories listing - navigate to it if needed. .
  6. In the "Script" field, enter "server.js" or whatever the main js file name is -- just the file name
  7. Click the "Create" button
  8. On the applications list, find the new application
  9. Under the "3 dots" menu on the right, select "Create Route"
    1. This creates a new Route that you can view under the Routes tab
  10. Wait 5 to 10 minutes for the configuration to reload 
  11. The Node.js app should be running now.  

NOTE: At time of writing, the Directadmin servers only supported one version of Node for the entire server.  If you require a specific version, please contact support to confirm the version available.  


Share via

Related Articles

© Cooini, LLC