How to Use the MultiPHP INI Editor in WHM to Customize PHP Settings

Learn how to manage PHP configurations in WHM using the MultiPHP INI Editor. This guide walks you through both Basic and Editor modes to help you fine-tune PHP settings per version for better performance and compatibility.

Update PHP Version on cPanel

Managing multiple PHP versions is essential for modern websites running diverse applications. If you're hosting multiple sites on a VPS or Dedicated Server with WHM, the MultiPHP INI Editor makes it easy to fine-tune PHP settings per version. This tool allows server admins to edit php.ini settings in WHM, either through a beginner-friendly interface or an advanced raw editor.

In this tutorial, the experts at KW Servers will walk you through how to use the MultiPHP INI Editor effectively to help you optimize PHP performance, enhance compatibility, and ensure each website runs on the ideal configuration.

What You'll Learn

What Is the MultiPHP INI Editor in WHM?

The MultiPHP INI Editor in WHM is a built-in tool that lets you manage php.ini settings for each PHP version installed on your server. It offers:

  • Basic Mode for quick adjustments with toggle switches and fields.

  • Editor Mode for full manual control over PHP configuration files.

Whether you're looking to increase upload limits, enable error display, or fine-tune compression settings, this tool makes it simple to manage PHP settings per domain or globally.

Step 1: Access the MultiPHP INI Editor in WHM

  1. Log in to your WHM (Web Host Manager).

  2. In the search bar on the left-hand menu, type MultiPHP INI Editor.

  3. Click on the feature when it appears to access the main interface.

  4. Plan for Downtime: Updates can sometimes cause temporary issues, so schedule maintenance during off-peak hours.

You’ll be taken to the MultiPHP INI Editor page, where you’ll see two tabs — Basic Mode and Editor Mode.

Step 2: Modify PHP Settings Using Basic Mode

This mode is perfect for most users who need quick and safe access to common PHP directives.

Choose PHP Version

  • Use the dropdown to select the PHP version you want to edit (e.g., PHP 7.4, PHP 8.1).

  • Once selected, a table of PHP directives will populate below.

Common PHP Directives You Can Edit

Directive What It Does
zlib.output_compression Enables GZIP compression for faster load speeds.
file_uploads Displays PHP errors directly in the browser (useful for debugging).
display_errors Displays PHP errors directly in the browser (useful for debugging).
allow_url_include Enables remote file includes via functions like include() or require().
allow_url_fopen Allows PHP to open external URLs using file functions.
Elastic Scalability Virtual Machine

Each directive has a description, a toggle (Enable/Disable), or a field for value customization.

Save Your Changes

Once you’ve adjusted the settings to fit your website’s needs, click Apply at the bottom of the page. These changes will be saved to the global php.ini file for the selected version and affect all sites using it.

Step 3: Advanced Configuration Using Editor Mode

For experienced system administrators, the Editor Mode provides raw access to the php.ini file.

How to Use Editor Mode

  1. Click the Editor Mode tab.

  2. Choose the desired PHP version from the dropdown.

  3. A full configuration file will appear, ready for manual edits.

You can search for specific directives using Ctrl + F, then update the values directly.

⚠️ Important: Only use Editor Mode if you know what you’re doing. Incorrect values can break PHP functionality across websites.

When to Use Each Mode

Mode Best For
Basic Mode Website owners, developers making small tweaks.
Editor Mode Sysadmins, DevOps, or advanced users managing performance and security.

Final Tips for Optimizing PHP Performance

  • Enable zlib.output_compression for better page load speeds.

  • Increase memory_limit and post_max_size for heavy applications like WordPress or Magento.

  • Disable display_errors on production sites to avoid leaking sensitive data.

  • Customize max_execution_time to prevent timeout issues during large script execution.

Conclusion

The MultiPHP INI Editor in WHM is a powerful tool that makes it easy to customize PHP configurations across different versions. Whether you're running WordPress, Laravel, or custom apps, fine-tuning your PHP directives can significantly improve website speed, security, and stability.

Use this guide to configure PHP like a pro, and if you need help, KW Servers has your back.

Discover KW Servers Dedicated Server Locations

KW Servers servers are available around the world, providing diverse options for hosting websites. Each region offers unique advantages, making it easier to choose a location that best suits your specific hosting needs.