Multiphp ini editor cpanel missing

This article describes how to change the PHP version and additional settings by using MultiPHP in cPanel.

Changing the PHP version

MultiPHP enables you to use multiple versions of PHP on your server at the same time. To do this, follow these steps:

  1. Log in to cPanel.

    If you do not know how to log in to your cPanel account, please see this article.

  2. Open MultiPHP Manager:
    • If you are using the Jupiter theme, on the Tools page, in the Software section, click MultiPHP Manager:

      Multiphp ini editor cpanel missing

    • If you are using the Paper Lantern theme, in the SOFTWARE section of the cPanel home page, click MultiPHP Manager:

      Multiphp ini editor cpanel missing

    If you do not see MultiPHP Manager, your server does not support this feature.

  3. Under System PHP Version, cPanel displays the default PHP version for your server. Any domain that does not have a PHP version explicitly set uses this version.
  4. To change the PHP version for a domain, under Set PHP Version per Domain, select the check box next to the domain for which you want to change the PHP version:

    Multiphp ini editor cpanel missing

  5. In the PHP Version list box, select the PHP version you want to use for the domain, and then click Apply:

    Multiphp ini editor cpanel missing

  6. The new PHP version for the domain takes effect immediately.

Changing PHP settings

In addition to changing the PHP version from cPanel, you can change various PHP settings using MultiPHP. You can enable and disable PHP extensions, as well as configuration directives such as allow_url_fopen, error_log, and many more.

This feature removes the need to configure and maintain custom files for PHP settings from the command line. Instead, you control all PHP settings directly from cPanel.

To change your PHP settings, follow these steps:

  1. Log in to cPanel.

    If you do not know how to log in to your cPanel account, please see this article.

  2. Open MultiPHP INI Editor:
    • If you are using the Jupiter theme, on the Tools page, in the Software section, click MultiPHP INI Editor:

      Multiphp ini editor cpanel missing

    • If you are using the Paper Lantern theme, in the SOFTWARE section of the cPanel home page, click MultiPHP INI Editor:

      Multiphp ini editor cpanel missing

    If you do not see MultiPHP INI Editor, your server does not support this feature.

  3. Under Configure PHP INI basic settings, in the Select a location list box, select the home directory or a domain document root:

    Multiphp ini editor cpanel missing

  4. Under PHP Directive, locate the PHP directive you want to change.
  5. Under Setting, select the new setting that you want for the directive.

    Depending on the directive you select, you may need to use a slider to enable or disable the setting. Alternatively, you may need to type a value into a text box.

  6. At the bottom of the page, click Apply. The new PHP settings take effect immediately.

  • Overview
  • Available PHP Versions
  • How to Update PHP
  • Fix MultiPHP Error
  • php.ini
  • Limits
  • View Settings

This article will discuss the workaround for your WordPress website if you encounter an issue similar to this one:

Multiphp ini editor cpanel missing

The error will begin with:

"Warning: Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in"

Followed by a location in your cPanel directory and then:

"Your PHP installation appears to be missing the MySQL extension, which WordPress requires."

This fix requires you to navigate the File Manager and modify files. If you are not comfortable doing this, our Support team will assist you via phone or Live Chat.


How to fix the "Missing MySQL Extension" error

Note: This workaround will work if you previously used the PHP Selector to manage the PHP version for your site, then recently used the new MultiPHP Manager to update your PHP version.

In the video below, we will walk you through identifying the "Missing MySQL Extension" error and the steps to resolve it.


Here are the steps outlined in the video guide.

You may find some links below that will take you directly to your cPanel provided that the following conditions are met:

  • You are logged into your Customer Portal. You can also log in after clicking the link.
  • The hosting package you are attempting to access is either Shared or Cloud. The link will only work for the first type of this package listed in the billing account.

  1. Log in to cPanel.
  2. Go to the Files section, then click on the File Manager icon.

    Multiphp ini editor cpanel missing

  3. Locate and open the public_html folder.

    Multiphp ini editor cpanel missing

    The public_html is the document root of your primary domain, which is why we're using it for this example. If you are doing this for a subdomain or an addon domain, you will want to go to the domain's document root instead.

  4. Locate the .htaccess file, right-click on it, and select View.

    Click to know how to locate your .htaccess file

    We created a video tutorial to assist you in finding and editing your .htaccess file. Here is the link to the video.

    To locate the .htaccess file:

    1. Log in to cPanel.
    2. In the Files section, click on the File Manager

      Multiphp ini editor cpanel missing

    3. To display the .htaccess file, click Settings in the upper right-hand corner.

      Multiphp ini editor cpanel missing

    4. Make sure Show Hidden Files (dotfiles) is selected.

      Multiphp ini editor cpanel missing

    5. Click Save. This will refresh the page, and all files starting with a "." (dot) will be displayed.
    6. You can now select your domain's document root. For this example, we will use the public_html folder.
    7. Inside your public_html, look for the .htaccess file.

      Multiphp ini editor cpanel missing

  5. In your .htaccess, you should see the PHP handlers entries. First, you'll have to identify and remove the old PHP handler.

    The old PHP handler you'll want to remove will look similar to one of these:

    
    # Use PHP71 as default
    AddHandler application/x-httpd-php71 .php
    <IfModule mod_suphp.c>
        suPHP_ConfigPath /opt/php71/lib
    </IfModule>
    	

    or

    
    #Use PHPedge as default
    AddHandler application/x-httpd-php-edge .php
    <IfModule mod_suphp.c>
        suPHP_ConfigPath /opt/phpedge/lib
    </IfModule>
    	

    Note: Suppose you did not see any of the two old PHP handler entries in your .htaccess file. Try checking other .htaccess files outside the public_html by clicking the Up One Level link in the top menu.

    Multiphp ini editor cpanel missing

    The PHP handler you want to keep will look like the one below. You will notice that it says "cPanel-generated handler, do not edit," created by the MultiPHP Manager.

    
    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php73” package as the default “PHP” programming language.
    <IfModule mime_module>
      AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit
    	

    These PHP handlers are conflicting with each other, which is why your site is showing an error. You will need to remove the old PHP handler so the MultiPHP handler code will take effect instead.

  6. Once you've identified these PHP handlers, create a backup of your .htaccess file before making any changes.

    Click to know how to create a backup of the .htaccess

    To create a backup of your .htccess file:

    1. In your directory, locate the .htaccess file.

      Multiphp ini editor cpanel missing

    2. Right-click on it and select Copy.
    3. The pop-up window will provide the beginning of where to store the backup. Enter the file name so that it reads /public_html/.htaccess.bak, then click Copy File(s).

      Multiphp ini editor cpanel missing

    4. You'll see the backup file, .htaccess.bak, in public_html.

  7. Right-click on the .htaccess and select Edit.

    Multiphp ini editor cpanel missing

    Alternatively, you can click on the .htaccess file, then click on the Edit icon at the top of the page.

  8. A dialogue box will appear. Click Edit to continue. The editor will open in a new window.

    Multiphp ini editor cpanel missing

  9. Do the necessary update. To disable the PHP handler you don't want, add a "#" at the beginning of each line, as shown in the example below.

    
    #Use PHPedge as default
    #AddHandler application/x-httpd-php-edge .php
    #IfModule mod_suphp.c>
    #   suPHP_ConfigPath /opt/phpedge/lib
    #/IfModule>
    	

    Note: There may be more than one old PHP Handler entry in your .htaccess file. Continue adding "#" to any additional entries. You should only have one entry that begins and ends with:

    # php -- BEGIN cPanel-generated handler, do not edit
    .
    .
    .
    # php -- END cPanel-generated handler, do not edit
    

  10. Once done, click Save Changes in the upper right-hand corner.

    Multiphp ini editor cpanel missing

  11. Click Close to exit the editor.
  12. Pull up your site to check if the error is already gone.

Still, getting the "Missing MySQL Extension" error?

It is possible to have multiple .htaccess files that you may need to edit. If you find you are still getting this error after editing the .htaccess file in the public_html folder, you need to check your root directory.

Try and continue with these steps.

  1. Navigate to the root directory by clicking on the top folder in the left-hand panel that starts with (/home#/user), where the user is your cPanel username.

    Multiphp ini editor cpanel missing

  2. Scroll down the right-hand panel until you locate another .htaccess file. Any .htaccess file with a string of numbers or characters is disabled and disregarded.
  3. Open the .htaccess file and check if there is an old PHP handler. Continue with the rest of the steps as discussed above.
  4. Once done, reload your website.

If the error is still there, go to your cPanel's MultiPHP Manager and select your website name. Then, set your PHP version to inherit from the dropdown menu.

Multiphp ini editor cpanel missing


Frequently Asked Questions (FAQs)

What is the easiest way of viewing and updating the PHP version of my website?

The cPanel has a MultiPHP Manager that allows you to view and update your websites' PHP versions. Please refer to this article to know more about this feature: What Version of PHP Are You Using?

We also have a video guide discussing the use of the MultiPHP Manager.

Where is my File Manager?

All website files are stored inside your File Manager. To learn how to access your File Manager, please visit this article: How to Navigate Through File Manager.

How can I edit my files inside the File Manager?

Your website files can be created, modified, or removed from your File Manager. Please visit the article, How to Create/Edit/Delete a File Using the File Manager, for detailed instructions on managing your website files.

I am done with the steps above, but my site now shows a different error page (403, 404, or 405 Error). How to resolve it?

There are many possible causes why your website is showing an error page. Troubleshooting depends on the error page code (403, 404, 500, etc.) you are seeing. Please visit these helpful articles for more information on error page codes and how to resolve them.

  • Error Page Codes
  • 403 Forbidden or No Permission to Access
  • 404 Error Page
  • 500 Internal Server Error Help

Additional References

  • How to update the PHP version (How to Fix "Missing MySQL Extension" Error is in this article as well)
  • What to know before you upgrade PHP on your website
  • What is php.ini?
  • Default files .htaccess and php.ini

Need further assistance? HostGator's Support is here to help. Just reach out to us via phone or Live Chat!

How do I install MultiPHP ini Editor in cPanel?

Editor Mode.
Login to cPanel..
In the Software section, click on MultiPHP INI Editor..
In the top-left hand section of the MultiPHP INI Editor page, click on Editor Mode..
Under Configure PHP INI basic settings click the dropdown menu that says — Select a location —.
Select the domain you would like to make changes to..

Where is MultiPHP ini Editor in cPanel?

cPanel users can view information about the server's PHP configuration in cPanel's MultiPHP INI Editor interface (cPanel >> Home >> Software >> MultiPHP INI Editor).

How do I add a MultiPHP in cPanel?

The cPanel default profile includes PHP versions 7.4 and 8.0..
Select the checkbox for the domain that you wish to change..
Select the desired version of PHP from the PHP Version menu. ... .
Click Apply..

Where do I find PHP ini in cPanel?

Each file exists in the /opt/cpanel/ea-php72/root/etc/php. ini file, where 72 is the PHP version number.