Technique

Upgrade your PHP version without risk: test it first

Put your website online from €9 per month

Free migration. We move your site and help you over WhatsApp, every day from 9:00 to 21:00.

In short

  • PHP is the language WordPress, your theme and your plugins run on. A newer version is faster and safer, but an old plugin sometimes cannot keep up.
  • Not sure which PHP version your site runs? Ask us over WhatsApp or the Help form and we tell you.
  • Prepare on a copy of your site first: update plugins and themes there, click through your main pages, place a test order and send your forms.
  • With the Test site of Klappe Hosting you prepare yourself and ask us over WhatsApp or Help about the new PHP version, so your live site stays untouched until you are happy.

Your WordPress site runs on PHP. It is the language WordPress, your theme and your plugins are written in. New PHP versions come out regularly, and at some point old versions stop receiving security updates. Upgrading is therefore sensible, but it feels exciting: what if something breaks? In this article you read how to try the new version on a copy first, so your live site notices nothing.

Why the PHP version matters

A newer PHP version has three advantages.

  • Safer. Security problems are only fixed in current versions.
  • Faster. New versions often process pages faster, so your site feels lighter.
  • Ready for new plugins. Many plugins require a minimum PHP version. If you want to try a new plugin, a current version is handy.

The downside is that some older plugins and themes do not keep up. Sometimes you see an error message, sometimes a part of a page is missing. It rarely happens, but you want to know before your visitors see it.

What can go wrong

These are the places where an upgrade most often shows something.

  • A plugin that has not been updated for years. The maker stopped or is not ready for the new version.
  • A theme with custom changes. A piece of code in your theme can use an older way of writing.
  • A form or a payment module. These parts do a lot and so have a lot to run into.
  • The checkout of a shop. You only notice an error here when a customer tries it.

Your test site makes the difference: you prepare there, click around and see exactly what happens before your live site changes.

Which PHP version does your site run now?

Not sure? Ask us over WhatsApp or via the form under Help and we tell you which version your site runs. Write it down, so you know where you started.

It helps to make a short list beforehand of what your site does. That way you know what to check later.

  • Which plugins do you use, and when were they last updated?
  • Which theme is running, and has anyone made changes to it?
  • Which parts are essential for you: the contact form, a calendar, a booking module, the shop?
  • Who should look along? Sometimes a colleague knows better than you how the quote request is supposed to work.

With that list you walk through your test site with a purpose instead of by chance.

How to test a new PHP version on a test site

A test site is a copy of your site where you can work freely. At Klappe Hosting you create it in My account under Test site with Create test site. It takes about 3 minutes and you get an e-mail as soon as it is ready. You open it with Open test site and you are already logged in. People you invite get a 6-digit code by e-mail. The test site stays out of Google, and e-mails sent from it do not reach real customers by default.

Ask us about the new PHP version

Send us a message over WhatsApp or the form under Help with the version you want to try, and we decide together how to go about it. Your live site simply keeps running on the version you have now.

Update plugins and themes

On the test site, update your plugins and themes. A site that is up to date with its updates usually runs more smoothly on a new PHP version, and you see right away whether an update changes anything.

Click through your site

Take a round, the way a visitor does.

  • Open your homepage and a few other pages.
  • Click through your menu, also the pages you rarely look at.
  • Open the pages with a plugin in them: a calendar, a gallery, a price list.
  • Look out for error messages, empty spots and parts that look different.

Test what touches money or customers

This is where you want to be sure.

  • Send a test message through your contact form and see whether it arrives.
  • Log in as a customer or as a member.
  • Go through a test order in the checkout. Payments on the test site run in test mode.

Look at the notices

Keep an eye out for error messages while you click around. Is there a plugin or theme that does not keep up? Update it on the test site first and look again, or ask us to take a look.

Deciding: switch now or wait a little

After your round you have two outcomes.

  • Everything works. Tell us over WhatsApp how the test went. We look together at the best moment to move the live site to the new version.
  • Something does not work. You now know which plugin or theme it is. Look for a newer version or an alternative, test again on the test site and only then do the live site.

In both cases nothing went wrong for your visitors. That is exactly why you test first.

Plan the switch of the live site for a quiet moment, for example a morning when you are at your computer yourself. Afterwards click through the same pages as on the test site and send a test message again. That way you see right away that everything also works live. If you then raise the PHP version a little every year or so, each step stays small and clear.

A test site for all your bigger steps

A PHP upgrade is a good example, but you can do much more with it. You try a new plugin, redesign a page or practise with an update. What a test site is exactly, you read on the WordPress staging page and in What is a WordPress staging site. Want the copy to stay out of Google? That is in How to keep your test site out of Google. See the details on the pricing page or add the Test site via the order form.

Frequently asked questions

How do I know which PHP version my WordPress site uses?

Ask us over WhatsApp or the Help form and we tell you which version your site runs. Then you can follow this article to prepare for a newer one.

Will my site break if I upgrade PHP?

Usually not, but an old plugin or an old theme can give an error message. That is why you test the new version on a copy of your site first and only then look at your live site.

Can you help me move to a newer PHP version?

Yes. Send us a message over WhatsApp or the Help form with the version you want to try and we decide the safest way together. Prepare on your test site meanwhile. Your live site only changes when you want it to.

What do I do if a plugin stops working after the upgrade?

Update the plugin on the test site first. If no new version comes out, look for an alternative or ask us to take a look. Your live site simply keeps running in the meantime.

Read next

Ready to put your website online?

Order Website from €9 per month, or send us a WhatsApp message first.