Difference between revisions of "Node.js"

From Acenet Knowledgebase
Jump to: navigation, search
Line 11: Line 11:
  
 
[[File:cpanelnodejs1.png|1000px]]
 
[[File:cpanelnodejs1.png|1000px]]
 
+
<br><br>
 
+
 
There are several options and dialog boxes on the Create screen.
 
There are several options and dialog boxes on the Create screen.
 
+
<br>
 
[[File:cpanelnodejs2.png|1000px]]
 
[[File:cpanelnodejs2.png|1000px]]
 
+
<br><br>
1) Select the Node.js version you wish to use from the dropdown.
+
1) Select the Node.js version you wish to use from the dropdown.<br>
2) Select the Application node:  Development or Production
+
2) Select the Application node:  Development or Production<br>
3) Enter the application root directory.  It should be something like "/home/CPANEUSERNAME/directory". with your cPanel username and the name of the directory for your application files.
+
3) Enter the application root directory.  It should be something like "/home/CPANEUSERNAME/directory". with your cPanel username and the name of the directory for your application files.<br>
4) Edit the Application URL wil be the domain name the app will be on, plus a subdomain name which is redirected to the app.
+
4) Edit the Application URL wil be the domain name the app will be on, plus a subdomain name which is redirected to the app.<br>
5) Enter the name of the Application startup file.  This will be accessed when the application is started or restarted.
+
5) Enter the name of the Application startup file.  This will be accessed when the application is started or restarted.<br>
 
6) Any Environmental Variables can be entered by clicking Add Variable, then entering the variable name and value, and clicking done.
 
6) Any Environmental Variables can be entered by clicking Add Variable, then entering the variable name and value, and clicking done.
 
+
<br>
 
Click the blue Create button in the upper right when done.
 
Click the blue Create button in the upper right when done.

Revision as of 18:20, 14 August 2018

Node.js applications are easy to install in cPanel on Acenet's Shared and Reseller servers, thanks to CloudLinux Node.js Selector.

Log into cPanel, and go to the Software section.

Click the "Setup Node.js App" Icon.

Cpanelnodejs.png


On the next screen, any currently installed Node.js apps will be listed. Click the blue "Create Application" Button in the upper right to add a new application.

Cpanelnodejs1.png

There are several options and dialog boxes on the Create screen.
Cpanelnodejs2.png

1) Select the Node.js version you wish to use from the dropdown.
2) Select the Application node: Development or Production
3) Enter the application root directory. It should be something like "/home/CPANEUSERNAME/directory". with your cPanel username and the name of the directory for your application files.
4) Edit the Application URL wil be the domain name the app will be on, plus a subdomain name which is redirected to the app.
5) Enter the name of the Application startup file. This will be accessed when the application is started or restarted.
6) Any Environmental Variables can be entered by clicking Add Variable, then entering the variable name and value, and clicking done.
Click the blue Create button in the upper right when done.