StarDomain

Reinstalling VPS OS

Reinstalling VPS OS

Reinstalling the operating system on your VPS wipes the server clean and starts with a fresh OS installation. This is useful when you want to start over, switch operating systems, or recover from a severely compromised or misconfigured server.

Important Warning

Tip: Reinstalling the OS will permanently delete all data on your VPS, including websites, databases, emails, configurations, and files. This action is irreversible. Always create a full backup before proceeding.

When to Reinstall

  1. Starting fresh: You want a clean server without previous configurations
  2. Switching OS: Moving from one Linux distribution to another
  3. Security incident: The server has been compromised and you need a guaranteed clean state
  4. Irrecoverable misconfiguration: System-level changes have broken the server beyond repair
  5. Control panel change: Switching from one control panel to another (e.g., cPanel to DirectAdmin)

Pre-Reinstall Checklist

Before reinstalling, complete these steps:

  1. Back up all website files — download via SFTP or create a compressed archive
  2. Export all databases — use mysqldump or pg_dump to export database contents
  3. Save email data — download emails via an email client or back up mail directories
  4. Document configurations — note down web server configs, PHP settings, cron jobs, firewall rules
  5. Save SSH keys — copy your ~/.ssh/ directory contents
  6. Record DNS settings — screenshot or export your DNS zone files
  7. Note installed software — list of packages and versions you need to reinstall

How to Reinstall via Client Portal

  1. Log in to your {{COMPANY_NAME}} client portal at {{SUPPORT_URL}}
  2. Navigate to My Services and select your VPS plan
  3. Click the Server Management or VPS Controls tab
  4. Click Reinstall OS or Rebuild Server
  5. Select your desired operating system from the available options
  6. Set a new root password (use a strong, unique password)
  7. Review the data loss warning and confirm the reinstallation
  8. Wait 5-15 minutes for the process to complete

Available Operating Systems

Common OS options available for reinstallation:

Linux Distributions

  • AlmaLinux 8 / 9 — RHEL-compatible, ideal for cPanel/WHM
  • Rocky Linux 8 / 9 — RHEL-compatible, community-driven
  • Ubuntu 22.04 / 24.04 LTS — Popular, well-documented, large package repository
  • Debian 11 / 12 — Stable, lightweight, excellent for servers
  • CloudLinux 8 / 9 — Optimized for shared hosting environments

With Control Panel

Some providers offer OS templates with control panels pre-installed:

  • AlmaLinux 8 + cPanel
  • AlmaLinux 8 + DirectAdmin
  • Ubuntu 22.04 + Webuzo

Tip: If you plan to install a control panel, choose a minimal/clean OS template and install the panel manually for the best compatibility and latest version.

Post-Reinstall Steps

1. Initial Access

ssh root@your-server-ip

Use the password you set during reinstallation.

2. Update the System

yum update -y    # AlmaLinux/Rocky
apt update && apt upgrade -y    # Ubuntu/Debian

3. Secure the Server

  1. Change the root password if you used a temporary one
  2. Create a non-root user with sudo access
  3. Set up SSH key authentication
  4. Configure the firewall (UFW or firewalld)
  5. Disable root password login via SSH
  6. Install and configure fail2ban

4. Restore Your Data

  1. Upload website files via SFTP
  2. Import databases using mysql or psql
  3. Restore email data
  4. Reconfigure web server, PHP, and other services
  5. Restore cron jobs
  6. Test all websites and services

Troubleshooting

Reinstall Button Not Available

  • Some VPS plans may require contacting support for OS reinstallation
  • Open a support ticket requesting the reinstall

Cannot Connect After Reinstall

  • Wait at least 10 minutes for the reinstall to complete
  • Verify you are using the correct IP address
  • Check if your SSH client has cached the old server's host key — remove it with ssh-keygen -R your-server-ip
  • Use the VNC console from the portal to check server status

Wrong OS Installed

  • Simply repeat the reinstall process and select the correct OS
  • Each reinstall wipes the server completely

Need assistance with VPS reinstallation or setup? Contact our support team at {{SUPPORT_EMAIL}} or open a ticket at {{SUPPORT_URL}}.