🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

Is it necessary to upgrade to PHP 7.3 for website building? Methods to upgrade to PHP 7

Typically, when we build websites ourselves, we choose open-source software. Among website open-source software, WordPress likely has the largest user base. WordPress runs on PHP. According to statistics, most sites are still using PHP 5.* versions, while the latest PHP version before this article was published is PHP 7.3. Does PHP 7.3's performance help improve website performance? And how do you upgrade the PHP version? Let's take a look.

Testing Environment

WordPress Version 5.1 Server:Linode2 Cores, 4GB RAM, 48GB SSD PHP Versions: 5.6, 7.0, 7.1, 7.2, and 7.3 User Concurrency: 15 Duration: 60 seconds OPCache Memory: 128MB Twenty Nineteen default Theme

Benchmark Test Results

PHP性能对比From the chart above, we can see the number of requests processed per second by different PHP versions. It's evident that there is a significant performance gap between PHP 7 and above compared to PHP 5.6. The best performer is undoubtedly PHP 7.3. Therefore, if your server supports it or can be upgraded to PHP 7.3, upgrading is a good choice.

How to Upgrade PHP Version

Method to Upgrade PHP using Baota Panel

In the Baota Panel's Software Store, select PHP 7.3 and install it. After installation, go to the website settings and choose PHP version 7.3. (You can choose to delete or keep previously installed PHP versions.)

Method to Upgrade PHP using LNMP One-click Installation Package

After logging into SSH, navigate to the lnmp folder of your current version, then execute: .\/upgrade_php.sh Go to http:\/\/www.php.net\/downloads.php to get the version number, enter the version number, e.g., 7.3.7, press Enter, then press Enter again to confirm and start the upgrade.

Method to Upgrade PHP on Shared Hosting

This method is not guaranteed to be supported by your Shared Hosting. If you use a cPanel panel, you can find a 'Select PHP Version' option, then enter and choose 7.3.cpanel选择PHP版本 cpanel升级PHP版本If your Shared Hosting uses the Directadmin panel, look for the PHP version switch icon. Then, select the corresponding PHP version.Directadmin选择PHP版本Note: In some Directadmin panels, the PHP version selection might be located within the site settings.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: