If you want to run a Node.js application, DirectAdmin can host it where your plan includes Node.js support. This guide explains the general steps to create and run a Node.js app from your control panel.
Before you start #
- Confirm your plan includes Node.js.
- Have your application files ready to upload.
- Know your app’s start file and required Node version.
Creating the application #
- Log in to DirectAdmin.
- Open the Node.js (Setup Node.js App) tool.
- Create a new application, choosing the Node version and application root folder.
- Set the application URL and the startup file (such as app.js).
- Save to create the app and its environment.
Uploading and installing dependencies #
Upload your application files into the application root, then install dependencies. The Node.js tool typically provides a button or command to run npm install against your package.json, setting up the modules your app needs.
Starting and managing the app #
- Start the application from the Node.js tool.
- Restart it after code or dependency changes.
- Check the logs if it fails to start.
Troubleshooting #
- App will not start: confirm the startup file and Node version, and review the logs.
- Dependencies missing: run npm install again from the app’s environment.
- Option not present: Node.js may depend on your plan; contact support.
Need help? #
If your Node.js app will not run, our support team can help troubleshoot over live chat.