Knowledge Base
Save up to  70% off.  Start your website today!

How Do I Update the PHP Version on my Site?

Suppose you ever encounter problems with the way your server handles PHP packages or find WordPress requesting that you upgrade your PHP version. In that case, it is helpful to know how to view and modify your server's PHP. Updating your site's PHP version is vital for the security of your website. The latest security patches will be implemented whenever a new PHP version is released. This article discusses a few options for upgrading the PHP version of your hosting account.

How do I Update my Site's PHP Version

If your website needs a different PHP version, you need to log in to your cPanel to manage the site's version via the MultiPHP Manager.

The video above may look slightly different than our current cPanel layout. However, the functionality described will be similar.

Here are the instructions outlined in the video above.

  1. Log in to cPanel. There are two ways to access your cPanel.
    • Option 1: Access your cPanel directly.
    • Option 2: Access your cPanel via your Customer Portal.
      1. Log in to your Customer Portal.
      2. Click Hosting in the left-side menu.

        Customer Portal - Hosting menu

      3. If you have a single hosting package in your account, scroll down to the Quick Links section.

        If you have multiple hosting packages in your account, locate the hosting package you want to manage on the Hosting Packages page, then click its Manage button.

        Hosting tab - Manage button

      4. Under the Quick Links section, click the cPanel button.

        Hosting menu - Quick Links - Launch cPanel

  2. Within cPanel, click MultiPHP Manager under the Software section.

    HostGator cPanel MultiPHP Manager

  3. Select the domain you want to upgrade by checking the box on its left side.

    MultiPHP Manager Select Domain

  4. Choose 8.2 or select the newest PHP version from the dropdown, then click Apply.

    MultiPHP Manager Select PHP Version

  5. There will be a pop-up in the upper right corner notifying you that the change was successful.

    PHP Version Change Successful

If you previously used the PHP Selector to change your PHP version, there may be a handler in your .htaccess file that needs to be removed, similar to this one:
Use PHPedge as default 
AddHandler application/x-httpd-php-edge .php 
<IfModule mod_suphp.c> 
    suPHP_ConfigPath /opt/phpedge/lib 

For specific instructions on fixing Missing MySQL Extension errors, please refer to our support article How to Fix Error After MultiPHP upgrade.

Need a bit more help? Contact HostGator Support via phone or chat, and we will be happy to assist you!


Did you find this article helpful?

* Your feedback is too short