If you're using another *nix flavor, make sure to use the equivalent command (ie. Please keep in mind these upgrade instructions are for Debian or Ubuntu. The first thing we're going to do is add the correct repositories. The same goes for your INI configuration files if you've made customizations. If you're hosting multiple sites with separate PHP pools, they will get wiped during this upgrade process. Obviously, replace your_username with an actual home folder username. This way, you won't lose any files during the upgrade and can always reference them. cp -a /etc/php/7.0 /home/your_username/php_7.0_old Whichever route you prefer for your environment will be fine. You're going to run all the commands throughout these instructions as root or using sudo in front of each command below. This should go without saying, but oftentimes we forget. The very first thing you absolutely must do is perform a backup. Login to Your VPS and Backup!Īlright, let's get into it. Craft CMS is our choice for many reasons, including flexibility, security, and much more.Ĭraft's current stable release 3.7 requires PHP 7.2 at a minimum and recommends 7.4, while the up-and-coming Craft CMS 4 version will require PHP 8.0, at a minimum. Our preferred CMS these days is no longer WordPress. They require PHP 7.4, and over it's great to see that over 77% of sites are powered with at least PHP 7.2. But, have you looked at their official requirements? WordPressīy now, I'm sure you're well aware WordPress 5.9 is out. However, I assume you've come here because you manage your own virtual private server and want to learn how to upgrade properly. If your web hosting provider is not offering the latest version of PHP, you definitely want to ask them to upgrade. Outperform PHP 5 in terms of requests/second and many other performanceĪ faster website is better for SEO, your visitors, and quite frankly, the entire web experience. There are plenty of statistics all over the web on how PHP 7 and PHP 8 PHP 5 (aka PHP 5.6) has become unsupported right around the end of 2018.īut guess what? So has PHP 7.0, and it's time to upgrade either branch to the latest version. I can only assume most of them are worried about upgrading their servers due to backward compatibility issues. I've been building servers on various cloud providers for a long time and have encountered many nightmare scenarios with clients' websites.ĭon't get me wrong, there are plenty of good hosts out there. We offer fully-managed web hosting here at Zadro Web and take a lot of pride in making sure our servers are managed properly. Poor hosting will result in many issues, from security breaches to having a painfully slow website, and much more. Your web hosting is a critical component of your website's success.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |