Update php wordpress - godaddy
Hey everyone! Show
Been having some issues recently updating the PHP verison of our website. Over the last month or so, I’ve tried swapping the PHP version from 5.5.30 to 5.6, 7.0, 7.1, or 7.2 on our hosting provider (GoDaddy), but I’ve yet to see these updates reflected onto our wordpress. Currently our GoDaddy page says that we’re on PHP 7.2 with WordPress version 5.2.2, however our WordPress still says we’re on PHP 5.5.30 and therefore I can’t update the site from 5.1.1 up to 5.2 or 5.2.2. Any ideas or help on how to complete this update would be greatly appreciated. Some screenshots of both the GoDaddy and WordPress pages can be found here: –Jack The blog I need help with is http://www.ofallonbrewery.com. The page I need help with: [log in to see the link] PHP is a server-side scripting language that is used by web developers to create dynamic websites. WordPress, Joomla, Drupal and other popular content management systems, are all written in PHP. When PHP was originally created in 1994, PHP stood for “Personal Home Page“. though it is now referred to as “PHP: Hypertext Preprocessor“. You can see an example of PHP code in the box below:
PHP is configured on your website server and cannot be changed within the WordPress admin area. WordPress recommends website owners use PHP 7.4 or greater, though WordPress has backward compatibility all the way back to PHP 5.6.20 so you may be using an older version of PHP. In this article, I would like to explain why you should update PHP version in WordPress and the steps you should follow before performing an upgrade. I will then show how to update PHP in WordPress and what you should review after updating. Why Update PHP Version in WordPressThe PHP version you use for a WordPress website can influence your website’s security, performance, and compatibility. New versions of PHP are released regularly and each release branch is supported for two years from its stable release date. Every release of PHP adds a number of improvements to the language that helps provide visitors with an improved user experience.
Another key factor to consider is compatibility. As new PHP versions are released, developers begin to take advantage of new functions and syntax, which means your WordPress theme and plugins may be incompatible unless you upgrade the PHP version in WordPress. Before You Upgrade PHP Version in WordPressTo update PHP in WordPress safely, I highly recommend verifying some key information first and then creating a staging area. You can then update the PHP version that your staging area is using and check that there are no compatibility issues with the new version of PHP you have selected. By following these recommendations, you will greatly reduce the risk of something going wrong on your live website. 1. Check PHP Version in WordPressThe first step is to check the PHP version that your WordPress website is currently using. An easy way to check this is to use the WordPress site health tool. The Site Health tool can be found in the WordPress admin area under Tools. The status tab in Site Health checks a total of 19 performance and security issues such as inactive themes and plugins, HTTP requests working correctly and the WordPress core being up to date. It will also advise you if important PHP modules have not been installed. If you pass all tests, you will be told you’re doing a great job. The WordPress site health tool.The info tab gives you a complete overview of WordPress across ten categories. Under the server category, you can view the PHP version your server is currently using. In the screenshot below, you can see one of my WordPress websites is using PHP 7.4.30. The site health tool highlights a lot of useful information. The version of PHP you are using can be confirmed from your hosting control panel too. In the popular hosting platform cPanel, for example, the PHP version can be viewed on the server information page. You will see a link to this page in the general information column. The server information page lets you know which version of PHP, MySQL and Apache, you are running.You’ll also find your server’s PHP version in many administrative WordPress plugins and there are dedicated info plugins such as Version Info available which help you reference PHP and MySQL versions more easily. 2. Verify PHP CompatibilityCompatibility is something you need to consider whenever you change PHP on your server. In an ideal world, we would always use the latest version of PHP so that we can take advantage of the latest PHP performance and security enhancements, though there is a higher chance your website will break if you do this. Every new major version of PHP introduces new functions and syntax and deprecates older ones (i.e. removes them). As a website owner, you need to ensure that the PHP version you use works in harmony with the WordPress core and all installed WordPress themes and plugins. If any part of your website uses functionality that is not supported by your server’s installed PHP version, your WordPress may break. The table below shows which versions of the WordPress core are supported by different PHP versions. * At the time of writing, the latest WordPress version is 6.0.1.
It is important to verify that your server supports the version of WordPress you are using, though as the WordPress core supports many older versions of PHP, it is rarely the cause of major compatibility issues. It is more likely that a WordPress theme or plugin is incompatible, particularly if they have not been updated in more than 12 months. Unfortunately, the only practical way to detect theme and plugin compatibility issues is to create a staging area for your website, update the PHP version and then test your website (I’ll talk more about reviewing compatibility problems later). 3. Update the WordPress Core, Theme & PluginsIt is important to keep WordPress up to date to ensure your website remains secure and performs correctly. An up-to-date WordPress website is also less likely to experience compatibility issues when you update PHP so I recommend updating the WordPress core, active WordPress theme, and all active WordPress plugins. It is also prudent to generate a backup of your website before you process these updates if you aren’t using a real-time backup solution such as BlogVault. This allows you to restore your website if the updates crash your website. 4. Backup Your WordPress WebsiteOnce your WordPress website is up to date, I recommend backing up website. This precautionary step will give you a snapshot of your website just before you created a staging area. Please check out my article “19 Best WordPress Backup Plugins to Keep Your Data Safe” for a list of the best WordPress backup solutions on the market. 5. Create a Staging EnvironmentA WordPress staging environment can be used to create a copy of your live website and store it in a private development area. This allows you to safely process WordPress updates and make other changes to your website. A staging environment is without doubt the best way of safely testing a new version of PHP. Many hosting companies offer website staging functionality and a number of WordPress staging and backup plugins can be used to create a staging environment too. If you’re unsure about how to create a WordPress staging website, I recommend reading my article “How To Create a Staging Site for WordPress Websites“. In the article, I show the exact steps you need to follow to create a staging website using BlogVault, WPStaging, WP Stagecoach, WP Engine, FlyWheel, and Kinsta. Please be sure to use a WordPress staging solution that allows you to change the PHP version that is being used. 6. Update PHP in Your Staging AreaAt this stage, you should have an identical copy of your WordPress website in a staging area that you have verified is working correctly. You can now change PHP version in WordPress that your staging area uses. Most staging solutions allow you to change the PHP version using a dropdown menu. For example, if you use Kinsta to create your staging environment, all you have to do is go to the tools section and select the version of PHP you want to use under PHP engine. WP Engine customers can use a feature called PHP Tester that lets you test your WordPress website with different PHP versions without actually updating PHP. WordPress recommends website owners use PHP 7.4 at least, but it is worthwhile upgrading to PHP 8.0 or above if your website is compatible. Changing the PHP version in the Kinsta staging area.BlogVault does it a little differently from other solutions. With BlogVault, you select the PHP version you want when you create a staging area. There is no option to change a PHP version once the staging site is active, but you can easily create additional staging areas using different PHP versions if necessary. Select a different version of PHP to be used when generating a new staging area in BlogVault.7. Review Your Staged WordPress siteWith your staged WordPress website now using a newer version of PHP, it is time to start testing. Be sure to check every aspect of your website.
Testing is the most important step of updating PHP in WordPress, so take your time and check everything. You’ll thank yourself later. If you do run into some compatibility issues, you need to do some troubleshooting to determine which WordPress theme or plugins are causing the problem. My Troubleshooting PHP Upgrade Issues section later in this article explains exactly how you can do this. How to Update PHP in WordPressIf your staged WordPress website worked correctly after updating PHP, it is safe to update PHP in the production environment that hosts your live website. With most hosting companies, it only takes a minute to update PHP in WordPress through your hosting control panel. GoDaddyThe process of updating the PHP version with GoDaddy depends on whether you have a Linux, windows, or managed WordPress hosting account. Change PHP Version in Linux
Change PHP Version in Windows
Change PHP Version in a Managed WordPress Account
NamecheapNamecheap offers many different types of hosting accounts. Due to this, the process of updating PHP is different for those that use shared hosting and those that have VPS and dedicated server accounts. The company also offers a managed WordPress hosting service called EasyWP. This service uses a simplified hosting dashboard and does not allow you to update PHP directly yourself. How to Update PHP on Shared Hosting Accounts
How to Update PHP on a VPS or Dedicated Server
BlueHostBlueHost offers customers two different types of hosting control panels. The older hosting panel is called Legacy and the new hosting panel is called Rock. The process of updating PHP is straightforward with either type of account. How to Update PHP in the Legacy Hosting Control Panel
How to Update PHP in the Rock Hosting Control Panel
SiteGroundSiteGround previously used cPanel for their hosting control panel, but now offers customers a custom panel called Site Tools.
SiteGround also offers a Managed PHP Service that automatically updates PHP to the newest and safest version of PHP. Whilst this is a useful feature, I would strongly recommend you continue to update PHP manually to avoid your live website crashing due to WordPress theme and plugin compatibility problems. Using SiteGround’s PHP Manager.HostGatorHostGator uses cPanel for their hosting control panels, therefore you need to use the MultiPHP Manager to update PHP in WordPress.
KinstaKinsta’s custom dashboard makes it easy to update PHP in your staging environment or your live website.
WP EngineWP Engine allows customers to update PHP in WordPress from the overview page and the site page. How to Update PHP on the Overview Page
How to Update PHP on the Site Page
* If you want to update PHP in your staging environment, be sure to select your staging environment at step two. Changing the PHP Version in WP Engine.Change PHP Version in Other Hosting EnvironmentsAs you have seen from the examples above, the process of upgrading PHP in WordPress is straightforward and should only take a minute to complete. You’ll frequently find the option to update PHP in a section called Software or Tools, though hosting companies that use their own custom hosting control panel are simplifying things further. For example, my personal blog is hosted by the managed WordPress hosting company Wetopi and they allow me to change the PHP version from the main hosting dashboard. The main dashboard of Wetopi.It is important to speak to your hosting company if you cannot find the settings area to update PHP or if your hosting company restricts customers from updating PHP. Simply send them an email asking them to update your account.
Should You Hire an Expert?My recommendation is to always speak to your hosting company if you are unsure about how to update PHP. If you have purchased an unmanaged VPS or dedicated server, you may not be eligible to ask your hosting company for support. In that situation, you may want to consider hiring an expert through a third-party hosting support company or a freelancing marketplace such as Freelancer or Upwork. Hiring an experienced hosting administrator is a good short-term solution, but long term, you should not be managing a hosting environment yourself if you cannot update server software yourself. What To Do After Updating PHP in WordPressThe important thing to do after updating the PHP version in WordPress website is to verify that everything is still functioning correctly. If you followed my advice and updated your website’s PHP version in a staging environment, the risk of your live website experiencing problems after updating PHP is extremely low. It is, however, still prudent to test your website thoroughly to ensure there are no compatibility issues after updating. Troubleshooting PHP Upgrade IssuesYou may run into some compatibility issues when you update PHP. As the WordPress core has great support for older versions of PHP, these compatibility problems tend to arise because:
It can be difficult to determine which WordPress theme or plugins are incompatible. WP Engine’s plugin PHP Compatibility Checker was a useful tool in the past as it lets you check which PHP version WordPress themes and plugins, but the plugin has not been updated in some time and does not support the latest versions of PHP. Unfortunately, WordPress developers do not always confirm which version of PHP their theme or plugin supports, so it’s up to you to do some detective work. In some instances, it is obvious where the fault lies. For example, if a form or widget is not displaying properly, it is likely that the corresponding plugin does not support the newer version of PHP you installed. Troubleshooting is more difficult if you are facing WordPress’ infamous white screen of death. If you are facing a white screen after updating PHP, follow these steps:
Don’t be alarmed if you do face PHP compatibility issues. That is, after all, why you are using a staging environment to test your PHP upgrade. With a little troubleshooting, you should be able to determine which WordPress themes and plugins are incompatible with the newer version of PHP you selected. Final ThoughtsWordPress continues to recommend that website owners use PHP version 7.4 or greater. As such, I strongly encourage you to update PHP in WordPress if you are using version 7.3 or below. Doing so will improve your website’s speed, security, and compatibility with modern WordPress products. The process of updating PHP in WordPress is straightforward, but PHP compatibility issues are common on WordPress websites so be sure to test any PHP update you perform in a staging environment first. Good luck. Kevin Frequently Asked QuestionsA list of frequently asked questions about updating PHP for a WordPress website. Does it Really Matter Which Version of PHP I Use?Yes, it does. Newer versions of PHP offer more functions, better security, and enhanced performance. The version of PHP you use also affects which WordPress themes and plugins you can use on your website. How Do I Know When it is Time to Update PHP version in WordPress?The WordPress requirements page currently recommends PHP version 7.4 or greater. If you are using an older version of PHP, such as 5.6, 7.0, 7.1, 7.2 or 7.3, I recommend upgrading. You may also want to consider using a newer version of PHP such as PHP 8.0 or PHP 8.1 in order to take advantage of new functionality and improved security and performance. Do I Really Have to Test Everything in a Staging Environment First?It only takes a minute to upgrade PHP in WordPress via your hosting control panel, but if you update PHP without testing whether it is safe to upgrade, there is a high risk that you will crash your live website. By using a staging environment, you can review compatibility issues and safely troubleshoot any problems that arise. What If the Theme and Plugins I Use Do Not Support the Latest Version of PHP?Unfortunately, themes and plugins that have not been updated in a while may not support the latest version of PHP. You have a few options in this situation:
I do not recommend using outdated WordPress themes and plugins. As such, if a developer will not update their product, I strongly encourage you to find an alternative solution. What’s the Risk of Using an Unsupported Version of PHP?Every major release of PHP is supported for two years. If you continue using a version of PHP that is unsupported, you will no longer gain access to updates that address bugs and security problems. This can make your website more vulnerable to attacks from malicious parties. Kevin Muldoon is a professional blogger with a love of travel. He writes regularly about internet marketing on his personal blog and actively talks about technology on YouTube. How do I update my current PHP to WordPress?To update your WordPress site's PHP version, go to Sites and select the site you'd like to change the PHP version on. Then click on the Tools tab. Under PHP Engine click on the Modify button and select your preferred PHP version in the drop-down menu.
What is the latest PHP version of managed WordPress plan GoDaddy?WordPress recommends updating your PHP version to PHP 7.4.
How do I change PHP version in GoDaddy cPanel?In the account Dashboard, in the Settings section, select Server. To change the PHP version, next to PHP version select Manage. Select another PHP version from the list and then enter update in the Type 'update' to confirm field.
|