Enable Free SSL for Node.js Apps on Hiverift via cPanel

Enable Free SSL for Node.js Apps on Hiverift via cPanel
May 26, 2025

Enable Free SSL for Node.js Apps on Hiverift via cPanel Secure your Node.js application with free SSL certificates using cPanel’s AutoSSL on Hiverift hosting. Why Enable SSL? SSL (Secure Sockets Layer) encrypts data transferred between your users and your application, ensuring privacy and security. Browsers also prefer HTTPS sites, improving trust and SEO. Prerequisites Active Node.js application deployed via cPanel on Hiverift Registered domain pointed to Hiverift nameservers (ns1.kclouds.online, ns2.kclouds.online) Access to your cPanel dashboard Step 1: Log into Your cPanel Account Open your browser and go to https://yourdomain.com/cpanel. Enter your username and password to access the cPanel dashboard. Step 2: Enable AutoSSL for Your Domain In cPanel, find the SSL/TLS Status tool (you can use the search bar). Select your domain from the list. Click Run AutoSSL or Enable AutoSSL (depending on your cPanel version). Wait a few minutes for AutoSSL to issue a free SSL certificate for your domain. Step 3: Verify SSL Certificate Installation Once AutoSSL finishes, you should see a green lock next to your domain under SSL/TLS Status. You can also visit https://yourdomain.com and verify the connection is secure. Step 4: Configure Your Node.js App to Use SSL Node.js apps on cPanel typically run behind a proxy (like Apache or Nginx). To ensure your app uses HTTPS, follow these steps: In cPanel, go to Setup Node.js App or Application Manager. Edit your Node.js application settings. Ensure your app listens on the port specified by cPanel, but do not bind SSL certificates directly in your Node.js code. cPanel’s web server handles SSL termination and forwards requests to your app securely. Step 5: Redirect HTTP to HTTPS (Optional but Recommended) Force your website visitors to use HTTPS by adding the following rule to your .htaccess file via cPanel’s File Manager: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Troubleshooting Tips If AutoSSL fails, ensure your domain is correctly pointed to Hiverift nameservers: ns1.kclouds.online, ns2.kclouds.online. Check your domain’s DNS records to confirm A record points to your server IP. Verify no firewall or security rules block Let’s Encrypt validation requests. Contact Hiverift support if you encounter persistent issues. Tip: SSL certificates issued via AutoSSL renew automatically, so you don’t need to manage expiration dates manually. Summary Using cPanel’s AutoSSL on Hiverift, securing your Node.js app with free SSL certificates is straightforward. This setup ensures encrypted communication, improves your SEO, and builds visitor trust. For further assistance, reach out to dev@hiverift.com. © 2025 Hiverift. All rights reserved.

Using Git Version Control in cPanel to Deploy Node.js Projects
May 26, 2025

Using Git Version Control in cPanel to Deploy Node.js Projects Git is an essential tool for modern software development, allowing you to track changes, collaborate, and deploy applications efficiently. Many hosting providers, including Hiverift, integrate Git functionality directly into cPanel, making it easy to deploy your Node.js projects with version control. Why Use Git in cPanel for Node.js Deployment? Seamless deployment: Pull code directly from your remote Git repository onto your hosting server. Version control: Maintain history and rollback if needed. Collaboration: Multiple developers can push changes to the repository. Automation: Streamline updates by pulling the latest commits without manual uploads. Prerequisites Active Hiverift hosting account with cPanel access Node.js installed and configured on your hosting environment Git repository hosted on platforms like GitHub, GitLab, or Bitbucket SSH or password access for cPanel to connect to Git remotes if needed Step 1: Access Git Version Control in cPanel Login to your Hiverift cPanel dashboard. Locate the Git Version Control feature under the Files section. Click Create to start a new repository deployment. Step 2: Clone Your Remote Repository In the Git Version Control panel: Enter the Clone URL of your remote Node.js project repository (HTTPS or SSH link). Choose the directory path where the repository will be cloned on the server (e.g., ~/my-node-app). Click Create or Clone to begin cloning. Step 3: Manage Your Repository Once cloned, cPanel provides options to: Pull the latest changes from the remote repository View repository details and branches Delete the repository if needed Use the Pull button after making changes in your remote repo to update your server code instantly. Step 4: Install Dependencies via SSH or cPanel Terminal Open your SSH terminal or the cPanel terminal and navigate to your project directory: cd ~/my-node-app Install all Node.js dependencies defined in package.json by running: npm install Step 5: Start or Restart Your Node.js Application Depending on your setup, use one of the following methods to run your app: Use cPanel’s Node.js Application manager to set the application root and startup file and start the app. Or run your app with pm2 if installed, e.g., pm2 start server.js –name my-node-app Step 6: Automate Future Deployments After making code changes and pushing to your Git remote: Login to cPanel. Go to Git Version Control. Find your repository and click Pull to fetch and merge the latest commits. SSH into your server and run npm install if dependencies changed. Restart your Node.js app to apply updates. Troubleshooting Tips Authentication errors: Make sure your SSH keys or credentials are set correctly for private repos. Pull fails: Check for merge conflicts or permission issues on the server directories. App not running after deployment: Review logs with pm2 logs or check cPanel error logs. Conclusion Using Git version control in cPanel to deploy your Node.js projects on Hiverift hosting makes development and deployment streamlined and professional. It empowers you to manage code versions, collaborate efficiently, and keep your live application up-to-date with minimal effort. © 2025 Hiverift Hosting | Git & Node.js Deployment Guide  

Switching Node.js Versions with cPanel’s Node Selector on Hiverift
May 26, 2025

Switching Node.js Versions with cPanel’s Node Selector on Hiverift Easily manage and switch your Node.js runtime versions directly from cPanel. Why Switch Node.js Versions? Different applications may require different Node.js versions. Switching versions allows you to ensure compatibility and access the latest features or maintain legacy support. How to Switch Node.js Version in cPanel Login to your cPanel account: Go to yourdomain.com/cpanel Enter your credentials and log in. Navigate to Setup Node.js App or Application Manager: Use the search bar to find the Node.js setup. Click to open your application list. Edit your Node.js application: Find the app you want to modify. Click the Edit button. Choose your Node.js version: Look for the Node.js Version dropdown menu. Select the desired version from the list. Save and restart: Click Save or Update to apply changes. Restart your application to load the new Node.js version. Verifying the Node.js Version After restarting your app, verify the active Node.js version by: Opening the Terminal or SSH into your cPanel account. Running the command: node -v The output will show the current version running for your app. Tip: Always test your application after switching versions to ensure compatibility and functionality. Troubleshooting If the version does not update, clear your browser cache and retry. Make sure your app is properly restarted after version change. Check the package.json for any Node.js version constraints. Need Help? Contact the Hiverift support team at dev@hiverift.com for assistance with Node.js version management. © 2025 Hiverift. All rights reserved.

Deploying Express.js Projects Using cPanel on Hiverift Hosting
May 26, 2025

Deploying Express.js Projects Using cPanel on Hiverift Hosting Express.js is one of the most popular frameworks for building Node.js web applications. Deploying an Express.js app on Hiverift hosting using cPanel allows you to manage your project easily and ensure it runs smoothly. This detailed guide will walk you through the entire deployment process. Step 1: Prepare Your Express.js Application Before deployment, make sure your Express.js app is ready for production: Verify your package.json lists all dependencies. Set your app to listen on the port provided by the environment (usually process.env.PORT). Ensure you have a start script defined in package.json, for example: “scripts”: { “start”: “node server.js” } Replace server.js with your app’s main file if different. Step 2: Access cPanel on Hiverift Log in to your Hiverift hosting account and open cPanel. You will be using cPanel’s features to upload files, configure Node.js, and manage your app. Step 3: Upload Your Project Files Use one of these methods to upload your Express.js project: File Manager: Compress your project folder as a ZIP archive, upload it via cPanel’s File Manager, then extract it. FTP/SFTP: Use an FTP client like FileZilla to transfer your project files directly. Git Integration: If supported, clone your repository directly within cPanel or via SSH. Step 4: Set Up the Node.js Application in cPanel Navigate to the Setup Node.js App or similar option in cPanel. Click Create Application. Select your desired Node.js version. Set the application mode to Production. Enter the application root (the folder where your project resides, e.g., myapp). Set the application startup file (e.g., server.js or app.js). Click Create. Step 5: Install Dependencies Once your app is created, you’ll see a terminal option or a command field in cPanel: Run npm install to install all dependencies defined in your package.json. If you need to add or update packages, use the terminal or SSH to run npm install <package-name>. Step 6: Environment Variables Use the environment variables section in cPanel to set important variables like PORT, NODE_ENV, or database credentials. This avoids hardcoding sensitive info into your source code. Step 7: Start Your Express.js Application In cPanel’s Node.js interface, use the start or restart button to launch your application. The app will begin listening on the assigned port, and your Express.js server will be live. Step 8: Access Your Application Your app is accessible via the domain or subdomain configured on Hiverift. Make sure your domain points to the correct directory or use port forwarding if required. Troubleshooting Tips If your app doesn’t start, check npm install ran successfully and all dependencies are installed. Use cPanel’s error logs or npm start output to debug. Confirm that your app listens on the port specified by the hosting environment (process.env.PORT). Check file permissions to ensure the app files are readable. Summary Deploying Express.js apps on Hiverift using cPanel is straightforward with its Node.js application manager and built-in tools. By following these steps, you can get your app running smoothly and ready for production. © 2025 Hiverift Hosting | Express.js Deployment Guide

How to Connect MongoDB with Your Node.js App in cPanel
May 26, 2025

How to Connect MongoDB with Your Node.js App in cPanel Step-by-step guide for integrating MongoDB into your Node.js project on Hiverift or any cPanel hosting environment. Overview Whether you’re using MongoDB Atlas (cloud-based) or a local MongoDB server, this guide will help you integrate it into your Node.js app hosted via cPanel. Requirements Node.js App hosted in cPanel (via Application Manager) MongoDB Atlas account or access to MongoDB URI mongoose or MongoDB native driver installed 1. Install Mongoose in Your Node.js App Login to your cPanel Go to Setup Node.js App Open Terminal in the app root directory or use SSH Run the following command:npm install mongoose 2. Get Your MongoDB URI For MongoDB Atlas:mongodb+srv://username:password@cluster.mongodb.net/dbname?retryWrites=true&w=majority For local/hosted MongoDB:mongodb://localhost:27017/mydatabase 3. Add Your MongoDB URI as an Environment Variable (Recommended) In cPanel, go to Setup Node.js App Click Edit on your application Scroll down to Environment Variables Add:MONGODB_URI = your-mongodb-uri Click Save and then Restart the app 4. Update Your Node.js Code In your main file (e.g. index.js), use the following code to connect MongoDB: const mongoose = require(‘mongoose’); const uri = process.env.MONGODB_URI; mongoose.connect(uri, { useNewUrlParser: true, useUnifiedTopology: true }) .then(() => console.log(‘MongoDB connected successfully’)) .catch(err => console.error(‘MongoDB connection error:’, err)); Alternative: Use MongoDB Native Driver const { MongoClient } = require(‘mongodb’); const uri = process.env.MONGODB_URI; const client = new MongoClient(uri); async function run() { try { await client.connect(); console.log(“Connected to MongoDB”); const db = client.db(“your-database”); // perform actions on the collection } finally { await client.close(); } } run().catch(console.dir); Tip: Never hardcode credentials. Always use environment variables for security and portability. Troubleshooting Check cPanel Error Logs if your app fails to start Ensure your IP is whitelisted in MongoDB Atlas (under Network Access) Confirm mongoose or mongodb is listed in package.json Need Help? Contact our Hiverift support team at dev@hiverift.com for MongoDB setup assistance with your Node.js app. © 2025 Hiverift. All rights reserved.  

Configuring Environment Variables for Node.js via cPanel
May 26, 2025

Configuring Environment Variables for Node.js via cPanel Securely manage application settings using environment variables in cPanel’s Node.js interface. Why Use Environment Variables? Environment variables allow you to securely store settings like database credentials, API keys, and environment-specific flags (e.g., production, development) outside your Node.js source code. This improves security and flexibility across environments. Step-by-Step Setup Guide 1. Log into Your cPanel Account Visit yourdomain.com/cpanel Enter your cPanel username and password 2. Open “Setup Node.js App” or “Application Manager” Search for Setup Node.js App in the cPanel dashboard Click on it to see your existing Node.js applications 3. Select Your Application Find your Node.js app in the list Click the Edit or Settings button next to it 4. Add Environment Variables Scroll down to the Environment Variables section Click Add Variable Input your variable name and value: NODE_ENV → production DB_HOST → localhost API_KEY → your-secure-api-key Click Save or Update 5. Restart the Application Scroll up to the top of the app settings panel Click Restart to apply the changes Accessing Environment Variables in Your App Use process.env in your Node.js code to access the values: const dbHost = process.env.DB_HOST; const environment = process.env.NODE_ENV; Tip: Never hard-code sensitive data (like passwords or tokens) into your app code. Always use environment variables for such configurations. Common Environment Variables NODE_ENV — Defines the environment (e.g., development or production) PORT — The port your app should listen on (often set automatically) DB_HOST, DB_USER, DB_PASS — For database credentials SECRET_KEY — For encryption/authentication tokens Troubleshooting Ensure your app is restarted after updating variables Check logs if your app fails

Using SSH in cPanel to Manage Node.js Applications on Hiverift
May 26, 2025

Using SSH in cPanel to Manage Node.js Applications on Hiverift SSH (Secure Shell) access is a powerful tool for managing Node.js applications directly from the command line. If you’re hosting your Node.js app on Hiverift, SSH access through cPanel gives you full control for installing packages, starting apps, viewing logs, and managing environment variables. Here’s how to set it up and use it effectively. 🔐 Step 1: Enable SSH Access in Hiverift cPanel Log in to your Hiverift cPanel. Go to Security section and click on SSH Access. Click Manage SSH Keys if you want to use key-based authentication (recommended). Alternatively, get your SSH login credentials (host, port, username, password). 🧑‍💻 Step 2: Connect via SSH Use a terminal (macOS/Linux) or PuTTY (Windows) to connect: ssh username@yourdomain.com -p 22 If prompted, enter your password or provide the private key. 📁 Step 3: Navigate to Your Application Directory After login, move to your Node.js application folder: cd ~/myapp Use ls to list files and ensure you’re in the right directory. 📦 Step 4: Install Node.js Dependencies If you’ve uploaded your Node.js app using File Manager or Git, install its dependencies: npm install This installs all the modules listed in your package.json. 🚀 Step 5: Run Your Application Start your app manually using: node server.js Or use a process manager like pm2 for better control (if available): npx pm2 start server.js To keep the app running after you log out: nohup node server.js & 🧪 Step 6: View Logs and Debug Errors View the default output of your Node.js app: cat nohup.out Check error logs (if applicable): cat error.log 🔄 Step 7: Restart App After Making Changes After editing files via SSH or File Manager, restart the app: killall node node server.js 📋 Useful Commands Summary cd – change directory ls – list files npm install – install packages node app.js – run app nano .env – edit environment variables tail -f nohup.out – live log monitor 💡 Tips for SSH on Shared Hosting Always test commands locally before running on server Use .env and the dotenv package for sensitive data Use screen or tmux (if available) to maintain sessions Use Git inside SSH to pull project updates directly 📌 Conclusion SSH access on Hiverift gives you developer-grade control over your Node.js apps. You can run, restart, debug, and deploy applications with precision. When combined with cPanel’s Node.js environment setup, SSH becomes an essential part of your deployment and maintenance workflow. © 2025 Node.js SSH Guide | Hosted on Hiverift  

Installing and Running Node.js on Shared Hosting via cPanel
May 26, 2025

Installing and Running Node.js on Shared Hosting via cPanel If you’re using shared hosting with cPanel and want to deploy a Node.js application, you’ll be happy to know that many providers now support Node.js through their software tools. This guide will walk you through the entire process of installing and running a Node.js app on shared hosting with cPanel access. ✅ Requirements A shared hosting plan that supports Node.js (check with your provider) Access to cPanel Your Node.js app files (in a zipped folder or Git repo) Basic knowledge of Node.js and your app’s startup file (like server.js or app.js) 🔐 Step 1: Login to cPanel Open your browser and go to https://yourdomain.com/cpanel Log in using your hosting account credentials 🛠️ Step 2: Locate the Node.js App Feature In the cPanel dashboard, scroll to the Software section Click on Setup Node.js App (or a similar option depending on your host) Click Create Application ⚙️ Step 3: Configure Your Node.js Application On the application creation screen, configure the following: Node.js Version: Choose the version your app requires Application Mode: Use production for live sites or development for testing Application Root: Name of the folder in your file system (e.g., myapp) Application URL: Where your app will be accessible Startup File: The main file of your Node app (e.g., server.js) Click Create to set up the environment. 📂 Step 4: Upload or Clone Your Project Files Now that your app environment is created: Go to File Manager from cPanel Navigate to the folder set as your Application Root Upload and extract your zipped Node.js project OR use Git to clone: git clone https://github.com/yourusername/your-repo.git 📦 Step 5: Install Project Dependencies Return to the Node.js App interface Find your app and click on “Run NPM Install” This will install all packages listed in your package.json 🚀 Step 6: Start Your Node.js App In the Node.js App section, click Restart next to your app Visit your Application URL (e.g., https://yourdomain.com/myapp) You should see your Node.js app running live 🧪 Optional: Create a .env File for Environment Variables Use the File Manager or SSH to create a file called .env in the root directory Add your environment variables like this: PORT=3000 DB_URI=mongodb+srv://username:password@cluster.mongodb.net/app Make sure to use a library like dotenv in your code to load them. 🔒 Step 7: Secure with SSL (Optional but Recommended) In cPanel, go to SSL/TLS or AutoSSL Install an SSL certificate for your domain Ensure your app listens to HTTPS traffic properly 🛠 Troubleshooting Tips App not starting? Ensure your startup file is correct and your dependencies are installed 502 Bad Gateway? Your app might not be running on the specified port or failed to start Check Logs: Use cPanel’s Terminal or error log tools to debug runtime issues 📌 Conclusion Running Node.js on shared hosting via cPanel is easier than ever with built-in tools and simplified environments. As long as your hosting provider supports Node.js, you can host modern web applications with just a few clicks. For more advanced setups, consider switching to VPS or cloud hosting, but shared hosting is a solid choice for small apps, portfolios, and APIs. © 2025 Node Deployment Guide | Powered by cPanel  

Complete Guide to Setting Up a Node.js Environment in cPanel
May 26, 2025

Complete Guide to Setting Up a Node.js Environment in cPanel Deploy and run your Node.js apps easily using cPanel’s Application Manager. Overview This guide will walk you through the process of setting up a Node.js environment using the cPanel interface, ideal for Hiverift hosting or any provider with Node.js support through cPanel. Requirements cPanel account with Node.js support Uploaded Node.js project files (including package.json) Basic familiarity with file structures and npm Step 1: Access cPanel Login at https://yourdomain.com/cpanel Navigate to Setup Node.js App (or Application Manager) Step 2: Create a New Node.js Application Click Create Application Configure the following settings: Node.js version: Select the desired version Application Mode: Set to Production Application Root: e.g., my-node-app Application URL: e.g., https://yourdomain.com/app Startup File: e.g., index.js Click Create Step 3: Upload or Edit Your Files Open File Manager from cPanel Navigate to your application root directory Upload or create files including: index.js or app.js package.json Step 4: Install Dependencies Back in Application Manager, find your app Click Open Terminal (or use SSH if available) Navigate to the app directory:cd my-node-app Run:npm install Step 5: Start or Restart the Application Return to the Application Manager and click Restart. Your app will now run and be accessible via the configured URL. Tip: Make sure your app listens to the environment port: const port = process.env.PORT || 3000; Optional: Manage Environment Variables Click Edit on your Node.js app Scroll to Environment Variables Add variables like: DB_HOST = localhost NODE_ENV = production Need Help? Contact dev@hiverift.com for Node.js setup assistance on Hiverift hosting. © 2025 Hiverift. All rights reserved.  

How to Deploy Node.js Apps on Hiverift Using cPanel
May 26, 2025

How to Deploy Node.js Apps on Hiverift Using cPanel Deploying your Node.js application on Hiverift is seamless, thanks to its integrated cPanel support. Whether you’re a developer looking to host a full-stack application or an API service, this guide walks you through each step—from setting up the environment to launching your app. 🚀 Prerequisites Before starting the deployment process, ensure you have the following: A hosting plan from Hiverift that supports Node.js Access to cPanel Your Node.js application files ready for deployment (e.g., zipped project folder) Basic understanding of command line and file structure 📁 Step 1: Log into cPanel Go to your Hiverift-hosted domain’s cPanel (e.g., https://yourdomain.com/cpanel). Enter your username and password provided by Hiverift. 🛠️ Step 2: Set Up a Node.js Application In the cPanel dashboard, scroll to the “Software” section. Click on “Setup Node.js App”. Click Create Application. Configure the following settings: Node.js version: Select the version compatible with your app. Application mode: Choose Production or Development. Application root: The folder where your app files are located (e.g., myapp). Application URL: The subdomain/path where your app will be accessible. Application startup file: Usually app.js or server.js. Click Create. 📦 Step 3: Upload Your Application Files Return to the main cPanel dashboard. Open File Manager. Navigate to the application root directory (e.g., myapp). Upload your zipped application folder. Extract the contents within the root directory. 📄 Step 4: Install Dependencies Go back to the Node.js App section in cPanel. Find your application and click on “Run NPM Install”. If your app uses environment variables, create a .env file manually in the root directory. 🔄 Step 5: Start the Application After dependencies are installed, click “Restart” next to your app. Visit your Application URL to verify it’s running. ✅ Troubleshooting Tips White screen or 502 error: Check your startup file and ensure the listen() method is correctly configured. Missing dependencies: Re-run npm install or check for typos in package.json. Environment variables not loading: Ensure .env is correctly formatted and loaded using dotenv. 🧪 Optional: Connect a Custom Domain Go to Domains > Subdomains or Domains > Addon Domains in cPanel. Point the new domain to your Node.js app’s root directory. Use .htaccess or cPanel’s domain routing to serve the app via the new domain. 🔒 Bonus: Add SSL with AutoSSL Go to SSL/TLS > Manage SSL Sites. Use AutoSSL (provided by Hiverift) to install free SSL for your domain. Ensure your app handles HTTPS connections correctly. 📘 Conclusion Deploying Node.js apps on Hiverift using cPanel is straightforward, even for developers new to server management. With built-in support for Node.js environments, file management, and SSL integration, Hiverift provides all the tools you need to get your application live and secure. Have questions? Hiverift’s support team is available 24/7 to assist you. © 2025 Hiverift Deployment Guide  

Build Your Website with HiveRift

From professional business to enterprise, we’ve got you covered!

©2025, Hosting. All Rights Reserved by KhatuShyam Technologies

HiveRift
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.