1. Knowledge Base
  2. >
  3. Results
  4. >
  5. PHP Configuration Plugin

PHP Configuration Plugin

 

If you ever encounter problems with the way your server handles PHP packages, it may be helpful to view and/or modify your server's PHP configuration. Depending on the server that you are on, you will have either the MultiPHP Manager or the PHP Selector plugin in the cPanel, which is used to modify which version your website utilizes.

Update PHP Version for a Site

 

MultiPHP Manager

  1. In the cPanel, select the MultiPHP Manager in the Software section.
    cPanel MultiPHP Manager Plugin
  2. Select the domain you want to update by checking the box to the left of it.
    MultiPHP Manager Select Domain
  3. On the right-hand side, choose the version of PHP you need for your site and click Apply.
    MultiPHP Manager Select PHP Version
  4. There will be a pop up in the upper right corner, letting you know the change was successful.
    PHP Version Change Successful
If you previously used PHP Selector to change your PHP version, there may be a handler in your .htaccess file that needs to be removed. Please see How to Fix Error After MultiPHP Update.

PHP Selector

PHP Selector allows users on Shared and Reseller servers to easily enable a specific PHP version for a site without having to add a handler to the .htaccess file manually. To update the PHP version for a site:

  1. Log into cPanel.
  2. In the Software section, click on the PHP Selector icon.
    cPanel PHP Selector Plugin
  3. Navigate to the directory for which you'd like to update the PHP version. The document root for the primary site on your account is typically located in the public_html folder, so you would select this folder in the file tree.
    cPanel PHP Configuration
  4. Then, from the drop-down menu, select the version of PHP you want to use and then click Update.
    cPanel Select PHP Version
    Caution: If your site's scripts rely on older functions of PHP, which are no longer available in the latest stable version being used on the server, you may encounter compatibility issues when PHP Cur is automatically updated.

When using PHP Selector, updates are applied recursively. This means any update you apply to a directory will also apply to all subdirectories unless you apply a different directive to one of those subdirectories. Therefore, to use a different PHP version for an addon domain, you would need to navigate to the document root for the addon domain and select the appropriate version of PHP.

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