Activating Node.js in DirectAdmin
In DirectAdmin, you set up a Node.js app with Setup Node.js App. You choose the Node.js version yourself. If a version you need is missing, let us know.
- Log in to DirectAdmin and, under Extra Features, click Setup Node.js App.
- Click Create Application.
- Under Node.js version, choose the version, and under Application mode, choose Production for a live app.
- Under Application root, enter your app's folder, preferably outside public_html, for example
apps/myapp. Under Application URL, choose the domain and optionally a path, and enter the startup file (Application startup file). - Click Create.
- Open the address in your browser to test whether the app works.

Then upload your code to the folder you set as Application root. If it contains a package.json, click the pencil icon next to your app and then Run NPM Install. Click Restart to start the app. After every change to your code, click Restart again, otherwise the old version keeps running.
At the top of your app's screen, you'll also find a command to activate the virtual environment. You use it in the Terminal or via SSH if you want to run commands yourself. The Terminal and SSH are included in Power Webhost Three and Four, AI Wordpress Three and Power Reseller. See SSH access and the Terminal in DirectAdmin.
See also in the DirectAdmin manual: Terminal in your browser.
Detailed explanation with screenshots: Setting up a Node.js app in the DirectAdmin manual.
