This article demonstrates how to disable specific PHP functions on your server through WHM to enhance security. Some PHP functions can be exploited by hackers on web hosting servers. While these functions are not inherently malicious, disabling them as a precautionary measure helps bolster overall security.

How to Disable PHP Functions

  1. Step 1: Log in to WHM

    Access your WHM account by logging in.

    WHM login screen

  2. Step 2: Navigate to Software category

    Select the category titled "Software."

    Software category

  3. Step 3: Open MultiPHP INI Editor

    Select "MultiPHP INI Editor" from the available options.

    MultiPHP INI Editor

  4. Step 4: Switch to Editor Mode

    Choose the "Editor Mode" tab.

    Editor Mode

  5. Step 5: Select PHP version

    Choose the relevant PHP version from the provided dropdown menu.

    PHP version dropdown

  6. Step 6: View INI settings

    The INI settings corresponding to the selected PHP version will be displayed.

    INI settings

  7. Step 7: Search for disable_functions

    Use Ctrl+F to open the search box, then search for disable_functions.

    Search for disable_functions

    Search box

  8. Step 8: Add functions to disable

    Input the PHP functions you want to disable in the disable_functions field, separated by commas.

    Disable functions field

  9. Step 9: Save changes

    Click the "Save" button to apply the changes.

    Save button

  10. Step 10: Verify success

    A success message will be displayed confirming that the changes have been saved.

    Success message

This method represents the simplest and most fundamental way to disable PHP functions in WHM.