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
- Starting fresh: You want a clean server without previous configurations
- Switching OS: Moving from one Linux distribution to another
- Security incident: The server has been compromised and you need a guaranteed clean state
- Irrecoverable misconfiguration: System-level changes have broken the server beyond repair
- Control panel change: Switching from one control panel to another (e.g., cPanel to DirectAdmin)
Pre-Reinstall Checklist
Before reinstalling, complete these steps:
- Back up all website files — download via SFTP or create a compressed archive
- Export all databases — use
mysqldumporpg_dumpto export database contents - Save email data — download emails via an email client or back up mail directories
- Document configurations — note down web server configs, PHP settings, cron jobs, firewall rules
- Save SSH keys — copy your
~/.ssh/directory contents - Record DNS settings — screenshot or export your DNS zone files
- Note installed software — list of packages and versions you need to reinstall
How to Reinstall via Client Portal
- Log in to your {{COMPANY_NAME}} client portal at {{SUPPORT_URL}}
- Navigate to My Services and select your VPS plan
- Click the Server Management or VPS Controls tab
- Click Reinstall OS or Rebuild Server
- Select your desired operating system from the available options
- Set a new root password (use a strong, unique password)
- Review the data loss warning and confirm the reinstallation
- 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-ipUse the password you set during reinstallation.
2. Update the System
yum update -y # AlmaLinux/Rocky
apt update && apt upgrade -y # Ubuntu/Debian3. Secure the Server
- Change the root password if you used a temporary one
- Create a non-root user with sudo access
- Set up SSH key authentication
- Configure the firewall (UFW or firewalld)
- Disable root password login via SSH
- Install and configure fail2ban
4. Restore Your Data
- Upload website files via SFTP
- Import databases using
mysqlorpsql - Restore email data
- Reconfigure web server, PHP, and other services
- Restore cron jobs
- 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
Related Articles
Need assistance with VPS reinstallation or setup? Contact our support team at {{SUPPORT_EMAIL}} or open a ticket at {{SUPPORT_URL}}.