{"id":8441,"date":"2026-11-26T19:55:38","date_gmt":"2026-11-26T19:55:38","guid":{"rendered":"https:\/\/cloudvpshosts.com\/kb\/?p=8441"},"modified":"2026-11-26T19:56:41","modified_gmt":"2026-11-26T19:56:41","slug":"centos-7-end-of-life-move-to-almalinux-or-rocky","status":"publish","type":"post","link":"https:\/\/cloudvpshosts.com\/kb\/centos-7-end-of-life-move-to-almalinux-or-rocky\/","title":{"rendered":"CentOS 7 Is End-of-Life: Moving to AlmaLinux or Rocky on a VPS"},"content":{"rendered":"<p>CentOS 7 reached end of life on 30 June 2024 and no longer gets security updates, so any CentOS 7 VPS still online is running unpatched software. The two practical ways out are moving your sites to a fresh AlmaLinux or Rocky Linux server, or upgrading in place with AlmaLinux&#8217;s ELevate tool. A fresh server is safer; ELevate is faster when a rebuild is hard.<\/p>\n<p>This guide is for anyone still running a CentOS 7 VPS, often with cPanel, DirectAdmin or an older PHP stack. It explains both routes, the commands for each, and which version to land on.<\/p>\n<h2>Why do you need to move off CentOS 7?<\/h2>\n<p>Without updates, every new vulnerability in OpenSSL, the kernel or OpenSSH stays open on your server for good. The CentOS 7 package mirrors have also been retired to the vault, so even installing a package needs workarounds. Newer software such as current PHP versions and control panel releases no longer supports it.<\/p>\n<h2>Should you choose AlmaLinux or Rocky Linux?<\/h2>\n<p>Both are free, binary-compatible rebuilds of Red Hat Enterprise Linux, so either runs the software you ran on CentOS. Their support dates are almost identical.<\/p>\n<table>\n<thead>\n<tr>\n<th>Version<\/th>\n<th>Released<\/th>\n<th>Security updates until<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>AlmaLinux 10<\/td>\n<td>May 2025<\/td>\n<td>May 2035<\/td>\n<\/tr>\n<tr>\n<td>AlmaLinux 9<\/td>\n<td>May 2022<\/td>\n<td>May 2032<\/td>\n<\/tr>\n<tr>\n<td>AlmaLinux 8<\/td>\n<td>March 2021<\/td>\n<td>May 2029<\/td>\n<\/tr>\n<tr>\n<td>Rocky Linux 10<\/td>\n<td>June 2025<\/td>\n<td>May 2035<\/td>\n<\/tr>\n<tr>\n<td>Rocky Linux 9<\/td>\n<td>July 2022<\/td>\n<td>May 2032<\/td>\n<\/tr>\n<tr>\n<td>Rocky Linux 8<\/td>\n<td>May 2021<\/td>\n<td>May 2029<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Dates from <a href=\"https:\/\/endoflife.date\/almalinux\" rel=\"noopener\" target=\"_blank\">endoflife.date for AlmaLinux<\/a> and <a href=\"https:\/\/endoflife.date\/rocky-linux\" rel=\"noopener\" target=\"_blank\">for Rocky Linux<\/a>.<\/p>\n<p>Pick AlmaLinux if you want the ELevate in-place route, which AlmaLinux maintains, or if your control panel vendor recommends it. Pick Rocky if your team or vendor already standardises on it. For a new server, choose version 9 for the widest software support today, or version 10 for the longest life.<\/p>\n<h2>Option 1: Move to a fresh AlmaLinux or Rocky server (recommended)<\/h2>\n<p>A clean server avoids the leftovers of a ten-year-old install and lets you test everything before you switch. It also means downtime only during the final DNS change.<\/p>\n<ol>\n<li><strong>Order the new server.<\/strong> Pick AlmaLinux 9 or 10, or Rocky Linux 9 or 10, at checkout.<\/li>\n<li><strong>Rebuild the stack.<\/strong> Install your web server, PHP, database and control panel on the new system. Check that each application supports EL9 or EL10 first.<\/li>\n<li><strong>Copy the data.<\/strong> Move files with rsync and databases with a dump and restore. Our guide to rsync and database dumps covers the commands.<\/li>\n<li><strong>Test on the new IP.<\/strong> Use your local hosts file to load each site from the new server before anyone else sees it.<\/li>\n<li><strong>Switch DNS.<\/strong> Lower the TTL a day before, then point the records at the new IP. Keep the old server for a week as a fallback.<\/li>\n<\/ol>\n<p>If you use cPanel or Plesk, their own transfer tools can copy accounts across, which saves most of steps 2 and 3.<\/p>\n<h2>Option 2: Upgrade in place with ELevate<\/h2>\n<p><a href=\"https:\/\/almalinux.org\/elevate\" rel=\"noopener\" target=\"_blank\">ELevate<\/a> uses Red Hat&#8217;s Leapp framework to upgrade CentOS 7 to AlmaLinux 8 on the same server. It supports CentOS 7 to Rocky Linux 8 and other EL8 targets too. You then upgrade from 8 to 9 as a second step. Take a full backup first: an in-place major upgrade can fail and leave the server unbootable.<\/p>\n<h3>Point CentOS 7 at the vault repositories<\/h3>\n<p>Since the mirrors closed, yum cannot install anything until the repo files point at vault.centos.org:<\/p>\n<pre><code>sed -i 's\/^mirrorlist\/#mirrorlist\/g; s|^#baseurl=http:\/\/mirror.centos.org|baseurl=http:\/\/vault.centos.org|g' \/etc\/yum.repos.d\/CentOS-*.repo\nyum clean all\nyum update -y\nreboot<\/code><\/pre>\n<h3>Install ELevate and Leapp<\/h3>\n<pre><code>yum install -y http:\/\/repo.almalinux.org\/elevate\/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm\nyum install -y leapp-upgrade leapp-data-almalinux<\/code><\/pre>\n<p>For Rocky Linux 8, install <code>leapp-data-rocky<\/code> instead of <code>leapp-data-almalinux<\/code>.<\/p>\n<h3>Run the pre-upgrade check and fix what it reports<\/h3>\n<pre><code>leapp preupgrade<\/code><\/pre>\n<p>The first run almost always stops with inhibitors. Read <code>\/var\/log\/leapp\/leapp-report.txt<\/code>. Two fixes appear on most servers:<\/p>\n<pre><code>rmmod pata_acpi\nleapp answer --section remove_pam_pkcs11_module_check.confirm=True<\/code><\/pre>\n<p>Run <code>leapp preupgrade<\/code> again until no inhibitors remain.<\/p>\n<h3>Upgrade and reboot<\/h3>\n<pre><code>leapp upgrade\nreboot<\/code><\/pre>\n<p>The reboot runs the actual upgrade and can take a while. Watch it from your VPS console, then confirm the result with <code>cat \/etc\/redhat-release<\/code>. The <a href=\"https:\/\/wiki.almalinux.org\/elevate\/ELevate-quickstart-guide\" rel=\"noopener\" target=\"_blank\">ELevate quickstart guide<\/a> lists known issues and the steps for the 8 to 9 upgrade.<\/p>\n<h2>Fresh server or ELevate: which is right for you?<\/h2>\n<table>\n<thead>\n<tr>\n<th>Situation<\/th>\n<th>Better route<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>A few websites or apps you can redeploy<\/td>\n<td>Fresh server<\/td>\n<\/tr>\n<tr>\n<td>cPanel or Plesk with many accounts<\/td>\n<td>Fresh server with the panel&#8217;s transfer tool, or the panel&#8217;s own ELevate script<\/td>\n<\/tr>\n<tr>\n<td>A custom server nobody fully documented<\/td>\n<td>ELevate, after a full backup<\/td>\n<\/tr>\n<tr>\n<td>You need to end up on version 9 or 10<\/td>\n<td>Fresh server, to skip two upgrade jumps<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Where to run the new server<\/h2>\n<p>An <a href=\"https:\/\/cloudvpshosts.com\/linux-vps.php\">AlmaLinux VPS<\/a> from Cloud VPS Hosts comes with AlmaLinux 8, 9 or 10, or Rocky Linux 8.10, 9.7 or 10.1, chosen at checkout, on KVM with full root access. Plans start at \u20ac25 a month for 2 vCores and 4 GB RAM. Cloud Turbo, with 6 vCores and 8 GB RAM, is the safer pick for cPanel or DirectAdmin servers. If your sites need new SSL certificates after the move, you can get one from our <a href=\"https:\/\/cloudvpshosts.com\/ClientArea\/index.php?rp=\/store\/ssl-certificates\">SSL certificate store<\/a>.<\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>Can I still buy a CentOS 7 VPS?<\/h3>\n<p>Some hosts still offer the image, but it gets no security fixes. Use AlmaLinux or Rocky Linux instead; they run the same software with current updates.<\/p>\n<h3>Is CentOS Stream a replacement for CentOS 7?<\/h3>\n<p>CentOS Stream sits just ahead of Red Hat Enterprise Linux rather than following it, so it changes more often. For a server you want to leave alone, AlmaLinux or Rocky is the closer match to what CentOS 7 was.<\/p>\n<h3>Will my cPanel licence move to AlmaLinux?<\/h3>\n<p>cPanel supports AlmaLinux and Rocky Linux, and its own ELevate script handles CentOS 7 servers. Check your licence terms with your provider before rebuilding, since licences are often tied to an IP.<\/p>\n<h3>How long does an ELevate upgrade take?<\/h3>\n<p>Plan for an hour or more of downtime on a typical VPS, longer if the pre-upgrade check finds problems. Do it in a quiet period with a backup ready.<\/p>\n<h2>Next step: pick the replacement and book the move<\/h2>\n<p>Every week on CentOS 7 adds unpatched risk. Choose AlmaLinux or Rocky, set up the new server, and move one site at a time if that feels safer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Still running a CentOS 7 VPS? Compare a clean move to AlmaLinux or Rocky Linux with an in-place ELevate upgrade, and follow the steps for each.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_focuskw":"","rank_math_title":"CentOS 7 VPS End of Life: Move to AlmaLinux or Rocky","rank_math_description":"CentOS 7 lost all updates on 30 June 2024. How to move a CentOS 7 VPS to AlmaLinux or Rocky Linux: a fresh server, or an in-place ELevate upgrade.","rank_math_focus_keyword":"centos 7 vps"},"categories":[69],"tags":[],"class_list":["post-8441","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts\/8441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/comments?post=8441"}],"version-history":[{"count":2,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts\/8441\/revisions"}],"predecessor-version":[{"id":8453,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts\/8441\/revisions\/8453"}],"wp:attachment":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/media?parent=8441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/categories?post=8441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/tags?post=8441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}