Ricardoneud.com
Website
Website
Discord Community
Community Forum
  1. Installation
  • Home
  • Frequently Asked Questions
  • Api
    • User Login
    • Changelog
      • v1
      • v2
      • v3
      • v4
    • v1
      • Clients
        • Licenses
          • Get Licenses
      • Tools
        • Get Subdomains
        • Mail DNS Checker
        • Get DNS Information
    • v2
      • Clients
        • Licenses
          • Get Licenses
      • Games
        • Minecraft
          • Get Minecraft Server
      • Reseller
        • Licenses
          • Check License
          • Generate License
          • Update License
          • Delete License
      • Tools
        • Get Subdomains
        • Mail DNS Checker
        • Get DNS Information
    • v3
      • Games
        • Minecraft
          • Get Minecraft Server
        • Fivem
          • Get Fivem Server
      • Reseller
        • Licenses
          • Check License
          • Generate License
          • Update License
          • Delete License
      • Tools
        • Get Subdomains
        • Mail DNS Checker
        • Get Domain Information
        • Get DNS Information
      • User Login
    • v4
      • Games
        • Minecraft
          • Get Minecraft Server
      • Tools
        • Get DNS Information
        • Get Domain Information
        • Mail DNS Checker
        • Validate Email Host
        • Get Subdomains
        • Geo IP
      • User Login
        • Create Secret
        • Revoke Secret
    • Oauth2
      • Access Token
        POST
      • Read Profile
        GET
  • Products
    • Next.js Docs Template
      • Installation
        • VPS Installation
        • Pterodactyl Installation
    • Game Panels
      • Pterodactyl
        • Eggs
          • Installation
            • Next.js Egg
        • Extensions
          • Installation
            • Pterodactyl Livechat
      • Pelican
        • Eggs
          • Installation
            • Next.js Egg
    • Donate Me
      • Installation
        • VPS Installation
        • Pterodactyl Installation
    • LicenseForge
      • Installation
        • VPS Installation
        • Webhost Installation
    • Billing Portals
      • Paymenter
        • Extensions
          • Discord Linked Roles
            • Installation
            • Setting Up
          • CyberPanel
            • Installation
            • Setting Up
          • NeudAuth
            • Installation
            • Setting Up
      • WHMCS
        • Extensions
          • Installation
            • Ticket Spam Checker
            • Chatwoot Livechat
  • ProbeCore
    • Introduction
    • Self Hosting
      • Installation
        • VPS Installation
        • Pterodactyl Installation
  1. Installation

VPS Installation

Next.js Docs Template Installation Guide#

Prerequisites#

Before you begin, ensure you have the following installed on your VPS:
1.
Node.js: Make sure you have Node.js version 18 or higher installed. It is recommended to use Node.js version 21 for stability.
2.
Nginx: Install Nginx to use as a reverse proxy server.
3.
PM2: Install PM2 to manage your Next.js application process and keep it running 24/7.
4.
Next.js: The application is built with Next.js, so you'll need it installed.

Install Required Packages#

Run the following commands to install everything:

Step 1: Download and Set Up the Application#

1.
Download the Application:
Go to the Next.js Docs Template download page.
Choose the version you want to download and click the download button. It is recommended to always download the latest version for stability.
2.
Upload the Application:
Log in to your VPS using an SCP client like WinSCP or any other provider.
Navigate to the folder where you want to place the application, for example, /var/www.
Upload the downloaded zip file to this folder and unzip it.
3.
Navigate to the Application Directory:
Open your terminal and navigate to the directory where the application is uploaded:
4.
Install Dependencies and Build the Application:
Run the following commands:

Step 2: Configure Nginx as a Reverse Proxy#

Without SSL#

1.
Edit the Nginx Configuration File:
Open the config file using Nano:
Add the following configuration:
2.
Enable the Configuration:
3.
Restart Nginx:

With SSL#

1.
Install Certbot:
2.
Obtain an SSL Certificate:
3.
Verify and Adjust Nginx Config (if needed):
Certbot modifies your config. Ensure it looks like this:
4.
Restart Nginx:

Step 3: Manage the Application with PM2#

1.
Start the Application:
2.
Autostart on Reboot:

Step 4: Verify the Installation#

1.
Check Application Status:
2.
Access the Application:
Visit http://your-domain.com or https://your-domain.com depending on your setup.

Additional Resources#

For more information on deploying Next.js apps with Nginx and PM2, check out this guide.
Modified at 2025-07-27 13:27:35
Previous
Read Profile
Next
Pterodactyl Installation
Built with