Loading...

Knowledge Base
Categories:

PHP Version Selection

Share

Overview

Warning: We have updated the PHP version to 8.2 in 2023. For more information on changing content for PHP compatibility, see our guide What to do if my Site Does Not Support Newer Versions of PHP. To understand more about the changes in PHP 8.2, read cPanel's PHP documentation.

Our servers support PHP 8.2. PHP versions 8 and higher provide considerable improvements in speed and memory use over previous PHP versions. It has also improved error handling and many bug fixes. 

Before making the transfer, be mindful of script backward compatibility issues: older PHP code may not work with newer PHP versions. As a result, "avoid skipping versions" and instead "make updates incrementally." 

Before upgrading, you should check your site's "Compatibility" with new PHP versions. The PHP Compatibility Checker plugin is compatible with WordPress sites.. You can also use the PHP Manual to evaluate PHP's new and deprecated functionality. 

Pro Tip: In addition to guaranteeing that you get the most recent PHP, CodeGuard protects your data and files from accidents, data loss, and hackers. Make sure you have a daily backup of your site for quick restore. To learn more about this process, please see Getting CodeGuard Set Up for Backups.


 

How to Change Versions Using MultiPHP Manager 

You can change your PHP version in Account Manager by following these steps:

  1. Log in to your Bluehost Account Manager.
  2. Click on the Hosting tab from the side navigation menu to the left.
    cPanel Button
     
  3. Scroll down, and click on the CPANEL button. 
    cPanel Button
     
  4. Scroll down to t vhe Software section, and click on MultiPHP Manager.
  5. Select the version of PHP you're interested in using, and click Apply.

Generate php.ini

To generate a new php.ini file:

  1. Log in to your Bluehost Account Manager
  2. Click on the Hosting tab from the side navigation menu to the left.
    cPanel Button
     
  3. Scroll down, and click on the CPANEL button. 
    cPanel Button
     
  4. Under the Software section, select the MultiPHP INI Editor.
  5. Select the path by clicking on the drop-down menu under Basic Mode Selecting a location.
  6. Choose the domain name.
    multi-php-ini-editor-settings
  7. Once you're done, scroll down and click Apply.

Note: If you have any further questions about configuring the php.ini file, there are extensive descriptions within the file itself. You may also check this article MultiPHP INI Editor and find more help at http://www.php.net/docs.php.

What is php.ini?

The php.ini file is the default configuration file for running applications that require PHP. It is used to declare settings and control variables such as upload sizes, file time-outs, resource limits, etc. 
Your server is already configured with standard settings for PHP, which your site will use by default. Unless you need to change one or more settings, there is no need to create or modify a php.ini file.

Note: If you would like to make any changes to these settings, please do so through the MultiPHP INI Editor. To know more about the process, please see: How To Configure The PHP Environment With PHP ini.

Things to Keep in Mind

If you are using a custom php.ini file that references PHP modules that are not available in your selected version, your site may not work. Either remove the custom php.ini file (which will cause the server to use the default php.ini file) or create a php.ini file compatible with your selected version.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Did you find this article helpful?

 
* Your feedback is too short

Loading...