• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How to Upgrade Old WordPress Version to Latest Version

By Abhishek Ghosh May 24, 2023 7:09 pm Updated on May 24, 2023

How to Upgrade Old WordPress Version to Latest Version

Advertisement

Still, on May 2023, it is common for many of the users to continue using WordPress 4.9, PHP 7.2, Ubuntu 16.04LTS etc. There are several reasons behind the fear of not to continue upgrading them. The mentioned versions had breaking changes which forced them to fight for many hours to get back their site working. Additionally, WordPress 4.9 was the last version with the classic editor and classic way of using WordPress. Many of the site owners had hand-coded PHP snippets which required modifications to work with PHP7.2.

At this moment, PHP is at 8.2. It is still a good time to plan to upgrade WordPress to the latest stack. This article explains the method which will help the readers to upgrade to the latest Ubuntu, PHP, MySQL and WordPress without the risk of facing any downtime.

 

Prepare a Cloud Server to Upgrade Old WordPress to the Latest Version

 

Spin a cloud server instance on some reliable web host which supports pay-as-you-go billing for their cloud servers, such as Linode or DigitalOcean. Install the server software to set up a LAMP server running the latest version of Ubuntu LTS. If your old server is running PHP 7.2, then install and configure PHP 7.2, PHP 7.4 and PHP 8.x. We recommend upgrading PHP to 7.4 from the older version. You can upgrade to PHP 8.x later.

Advertisement

---

How to Upgrade Old WordPress Version to Latest Version

Consider using the Apache web server, and prefork module (that is what comes as default) for easy switching between PHP versions. On Ubuntu, you can easily switch between the versions of PHP. The below example is for switching from PHP 8.1 to PHP 7.4:

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
php -v
# If using PHP 8.1 as for example
sudo a2dismod php8.1
# point apache to use your desired version
# such as php7.4
sudo a2enmod php7.4
# switch php version
sudo update-alternatives --set php /usr/bin/php7.4
# test configuration for compatibility
apachectl configtest
# restart apache, it is not reload
sudo systemctl restart apache2
# reboot the server
# check php version
php -v

Upgrading the MariaDB version is not complex.
At the time of writing this article, still you can switch from MySQL, and Percona to MariaDB without doing any extra steps. There will be difficulties in the future.

Copy-paste the various settings of your production server (which is running WordPress now) such as Apache virtual hosts, PHP settings, and SSL certificates to the new server.

 

Disable HSTS, DNSSEC, TLS Dane etc Security Features

 

Go to the control panel of your DNS server, and decrease the TTL of A name to the minimum (it can be 1 second to 600 seconds as the minimum value). Wait for 1-2 days so that the value gets updated to the whole system across the globe.

If you have security features such as HSTS or DNSSEC or TLS Dane then disable them and wait for a week.

 

Upgrade WordPress to Version 5.3 on This New Server

 

You can simply move the backup to this new server and manually upgrade to WordPress 5.3. You’ll get the list of releases here:

Vim
1
https://wordpress.org/download/releases/

If that fails, then your method of the first step of the upgrade will be like server migration. You have to install WordPress against the IP address. Even with HSTS, on this new server, after moving the FTP content and database, you’ll be able to browse the front and posts by IP, for example:

Vim
1
2
3
https://your.server.ip.address/
https://your.server.ip.address/your-newest-post/
https://your.server.ip.address/your-oldest-post/

If everything is OK, update the new server’s IP in WordPress settings to your domain name. Thereafter you’ll fail to log in to the new server’s WordPress installation. Now you can switch the IP address from DNS. After 2-3 days, the propagation will complete and you can normally log in.

You should test whether your site is available everywhere on this planet by testing from WebPageTest.ORG, using the Tor browser, and other tools to test TTFB, DNS propagation etc.

 

Now Upgrade to the Latest WordPress on This New Server From WordPress 5.3

 

Take a backup. Now, you can automatically update WordPress to version 6.x.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Upgrade Old WordPress Version to Latest Version

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • How to Install WordPress : Ubuntu 16.04, Nginx, PHP7-FPM

    Here is Step by Step Guide on How to Install WordPress on Ubuntu 16.04, Nginx, PHP7-FPM, memcached & Percona MySQL 5.7 on Cloud Server or VPS.

  • Upgrade Ubuntu Server 14.04 to 16.04 With Live WordPress

    Here Are the Detailed Steps on How To Upgrade Ubuntu Server 14.04 to 16.04 With Live WordPress With Kernel Upgrade, Debug & Fixes For Nginx.

  • Install PHP 7.2 on Ubuntu 18.04 LTS Running Apache2, Percona MySQL

    We Will Install PHP 7.2 on Ubuntu 18.04 LTS Running Apache2, Percona MySQL. That will create a typical LAMP server setup, enough to run PHP-MySQL web applications like WordPress.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy