Skip to main content
All notes

How to Back Up a Website in cPanel Before Updating PHP

Back up website files and databases in cPanel before a PHP update. Understand full and partial backups, off-server copies, and how to plan a website recovery.

Share

Share to Instagram Stories

Preparing image…

  1. The link is copied.
  2. Download the image, then post it to Instagram Stories from your phone.
  3. Add a Link sticker to your Story and paste the link.
Download image

Instagram Stories can only be posted from the phone app.

Share to TikTok

Preparing image…

  1. The caption and link are copied.
  2. Download the image, then post it as a photo on TikTok.
  3. Paste the caption before you post.
Download image

Easiest to post from the TikTok app on your phone.

External storage connected to a laptop, illustrating a backup copy

Before updating PHP, back up website files and databases, retain a copy outside the same hosting account, and identify who can restore it. Downloading an archive does not establish that the website can recover.

This is a preparation guide. To inspect the active PHP version without changing settings, start with checking PHP in cPanel.

Map what needs a copy

A website may depend on application files, databases, user uploads, configuration, and external services. For WordPress, for example, a file backup alone does not include posts stored in the database. A database export does not include all uploaded images.

Ask the operator to identify the application and data locations. Do not assume everything sits in public_html, particularly when an application runs elsewhere or uses external storage. Record the current PHP version before changes.

Full versus partial backups

The Backup Wizard documentation explains full and partial options. Automatic restoration of a full account backup is not performed in the ordinary cPanel interface; it generally requires the hosting provider's WHM access. Establish the restore procedure before relying on that archive.

Partial backups separate components such as the home directory and databases. The application's requirements determine completeness, rather than the number of downloaded files.

Prepare the backup in cPanel

  1. Agree on a maintenance window. For an active transaction system, plan how to avoid files and databases representing inconsistent points in time.
  2. Open Files → Backup Wizard, if available, and choose Back Up. Hosting providers control feature availability.
  3. Select the agreed backup type. For partial backups, confirm that you choose the database actually used by the application.
  4. Wait for completion, then download the archive. Acceptance of a backup request does not mean the job finished.
  5. Store a copy elsewhere with restricted access. Archives can include configuration, credentials, and personal information.

The cPanel Backup guide describes additional scope and limitations. Contact the provider if the feature is unavailable or disk space prevents creating an archive.

Test restoration separately

Ask the operator to restore into a test environment. Use the appropriate runtime and check pages, login, uploads, and core workflows. Ensure the test copy cannot send real email or process real payments.

RecordWhy it matters
Backup time and time zoneEstablishes the recovery point
Related application, database, and foldersConfirms components belong together
Archive location and access ownerReduces dependence on one person
Restore test resultsEstablishes that the archive is usable
Steps for returning to the previous versionAssigns responsibility if the update fails

Account for data received after backup

If the site receives orders after backup, restoring an older database can lose those orders. A rollback plan must address new data as well as application folders.

A backup also does not establish that a vulnerability has been patched. After changes, the operator still needs to check the active version and application behavior. My article on PHP flaws and questions for hosting providers can guide that conversation.

If ownership of website files, databases, and hosting access is unclear, start with a small inventory before planning the update.

Cover photo: Samsung Memory US on Unsplash, used under the Unsplash License. This is an illustrative stock photo, not documentation of the incident, featured product, or a test result.

Found this useful? Share it with a friend or your team.

Share

Share to Instagram Stories

Preparing image…

  1. The link is copied.
  2. Download the image, then post it to Instagram Stories from your phone.
  3. Add a Link sticker to your Story and paste the link.
Download image

Instagram Stories can only be posted from the phone app.

Share to TikTok

Preparing image…

  1. The caption and link are copied.
  2. Download the image, then post it as a photo on TikTok.
  3. Paste the caption before you post.
Download image

Easiest to post from the TikTok app on your phone.

Is your team still doing something by hand?

Tell me about it, and let's find the fix together.