You can also copy the installation command from the [SVR.JS website](https://svrjs.org)
## 2. Configure SVR.JS
Open the `/etc/svrjs-config.json` file in your preferred text editor, and alter the configuration like this (`wwwroot` webroot property in the SVR.JS configuration serves as MERNMail application root):
Copy the `.env.example` file to a `.env` file in the MERNMail root directory (like `/var/lib/mernmail`). The configuration options can be found in the [/docs/configuration](Configuration) page.
For additional security, you can set the permissions for the `.env` file using this command:
```bash
sudo chmod 600 /var/lib/mernmail/.env
```
## 5. Install MERNMail integration mod
Run these commands to install the MERNMail integration mod for SVR.JS (replace `/usr/lib/svrjs` with SVR.JS installation directory):