< All Topics
Print

How to change the PHP version on my hosting

To change the PHP version on your hosting, the exact steps may vary depending on your hosting provider and the control panel they use. Here’s a general guideline that covers the most common scenarios:

  1. Access your hosting control panel: Log in to your hosting account and locate the control panel. The most common control panels are cPanel, Plesk, and DirectAdmin. The exact location and appearance may vary based on your hosting provider.

  2. Locate the PHP settings: In the control panel, search for the section or icon related to PHP or PHP settings. It is typically labeled as “PHP Configuration,” “PHP Settings,” or similar.

  3. Select the desired PHP version: Within the PHP settings section, you should find a drop-down menu or options to choose the PHP version. It may display the available PHP versions supported by your hosting provider. Select the version you want to use.

  4. Save the changes: After selecting the desired PHP version, save the changes. Look for a “Save” or “Apply” button within the PHP settings section. Click on it to save the new PHP version configuration.

  5. Test your website: Once you have changed the PHP version, it’s important to verify that your website functions correctly. Load your website and navigate through its various pages to ensure everything is working as expected. Check for any errors or compatibility issues that may have arisen due to the PHP version change.

Note: It’s recommended to always keep your PHP version up to date to ensure security, performance, and compatibility with the latest WordPress version and plugins. However, before making any changes to your PHP version, it’s advisable to check the compatibility of your WordPress theme and plugins with the new PHP version to avoid any compatibility issues.