A rollback means going back to the last version of your website that worked, after an update has gone wrong. It is the safety net under every PHPPHP is a programming language that builds your web pages on the computer that hosts your site, just before they reach the visitor. WordPress runs on it. update, pluginA WordPress plugin is an add-on you install in WordPress to give your site extra features, such as contact forms, SEO tools or a webshop. update and release: if the new version fails, you go back within minutes instead of hunting for the cause while your visitors see an error.
What is a rollback?
A rollback undoes a change. The change can be a new PHP versionA PHP version is a numbered edition of PHP, like 8.3. Each edition is looked after for a limited time, then gets security fixes only, then nothing., an updated plugin, a code release or a database change. What matters is that the previous state is still available and that you know how to bring it back.
There are three common ways. You can restore a backupA backup is a separate copy of your website's files and database, so you can bring the site back after a mistake, a hack or a failed update. of files and database. You can switch back to the previous version of the files if releases are kept side by side, which is how many deploymentsA deployment is the step that puts a new version of your website live for visitors, ideally automated, tested and easy to undo. work. Or you can undo a single setting, such as selecting the old PHP version in the hostingWeb hosting is the service that keeps your website's files on a computer that is always online, so visitors can open your site at any time. panel. The last is the quickest but only works when nothing else changed.
What a rollback means for a PHP or WordPress site
The files are the easy part. The database is the hard part. A site with logins, orders or form entries keeps changing while it runs, and a backup only holds the state from the moment it was taken. Restore it, and everything written afterwards is gone.
Some updates also change the database structure. A plugin update may rewrite tables so that the old plugin version no longer understands them. Rolling back the files alone then leaves a mismatch, and the site shows errors that were not there before the update.
For PHP versions the picture is simpler, since switching the version in the panel touches no data. Even then, switching back to an old version is a stopgap. Once a version no longer receives security fixes, going back means accepting that gap, so use the rollback to buy time for a proper fix.
How to prepare a rollback
Before you update, make a fresh backup and check that you can open it. Note the current PHP version and plugin versions. Test the update on a staging environmentA staging environment is a private copy of your website where you try updates first, so any mistakes happen there and not on the live site. first, and decide in advance what failure looks like: which pages must work, and what error in the log means you go back.
For a shop or a site with logins, choose a quiet time for the update, and keep the window between the backup and the update as short as possible.
When to act
Roll back when the update breaks something that matters to visitors and a quick fix is not in sight. Do it early, because every minute of an error costs trust. Afterwards, find out why it failed on a copy of the site, not on the live one. If the site is already down and you cannot get it back, we step in to fix your WordPress website, and our PHP upgrade service is built around testing first with a rollback ready.
Frequently asked questions
Is a rollback the same as restoring a backup?
Restoring a backup is one way to do a rollback. Another is switching back to the previous release of the files, which is faster and keeps the database as it is. Which one fits depends on what the update changed.
How long does a rollback take?
It depends on the size of the site and the method. Switching back to a stored previous version can take minutes, while restoring a large site from a backup can take much longer. Practice it once so you know your own number.
What happens to new orders if I roll back the database?
They are lost if they arrived after the backup was taken. That is why a rollback plan for shops and busy sites needs more thought than copying files back.