> ## Documentation Index
> Fetch the complete documentation index at: https://kb.mochahost.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing Node.JS with cPanel (standard cloud linux packages)

**NOTE: This feature is available and applies ONLY for our Linux - Mocha package**

1. Login to your cPanel control panel.

![](https://tutorials.my-virtual-panel.com/cpanel_error_log/1_cpanel_error_log.png)

2. Under Software Section choose **Setup Nodejs Version**.

![](https://tutorials.my-virtual-panel.com/nodejs_cpanel/2_nodejs_cpanel.png)

3. Click Create Application.

![](https://tutorials.my-virtual-panel.com/nodejs_cpanel/3_nodejs_cpanel.png)

4. Specify the details for your new application and click **CREATE**.

![](https://tutorials.my-virtual-panel.com/nodejs_cpanel/4_nodejs_cpanel.png)

* **Change Node.js version** — choose Node.js version from a drop-down.
* **Change Application mode** — choose application mode from a drop-down. Available modes are Production and Development.
* **Specify Application root** — specify in a field a physical address to the application on a server that corresponds with its URI.
* **Specify Application URL** — specify in a field an HTTP/HTTPS link to the application.
* **Specify Application startup file** — specify as NAME.js file.

5. Once created you will be able to **Stop/Restart/Edit/Remove** the application via the interface.

![](https://tutorials.my-virtual-panel.com/nodejs_cpanel/5_nodejs_cpanel.png)

6. By clicking **Edit** you will be able to make changes to the already created application including the variables you have set. Below are all the options available when editing your application:

![](https://tutorials.my-virtual-panel.com/nodejs_cpanel/6_nodejs_cpanel.png)

* **Restart application** — click Restart button.
* **Stop Node.js** — click Stop Node.js button.
* **Run JavaScript script** — click Run JS Script button to run a command specified in the Scripts section of the package.json file. Specify the name of the script to run plus any parameters then click Ok.
* **Remove application** — click Delete button and confirm the action in a pop-up.
* **Change Node.js version** — choose Node.js version from a drop-down.
* **Change Application mode** — choose application mode from a drop-down. Available modes are Production and Development.
* **Specify Application root** — specify in a field a physical address to the application on a server that corresponds with its URI.
* **Specify Application URL** — specify in a field an HTTP/HTTPS link to the application.
* **Specify Application startup file** — specify as NAME.js file.
* **Run npm install command** — click Run npm install button to install the package(s) described in the package.json file.
* **Add Environment variables** — click Add Variable and specify a name and a value.
