Adjusting PHP Settings in cPanel

Jul 1, 2024

Adjusting PHP Settings in cPanel

Overview

  • Adjust PHP settings like memory, display errors, etc.
  • Use cPanel tools: Multi PHP Manager and Multi PHP INI Editor.

Accessing Tools

  1. Log into cPanel account
  2. Navigate to Software Section
    • Find Multi PHP Manager
    • Find Multi PHP INI Editor

Using Multi PHP Manager

  • Purpose: Change the PHP version for your website.
  • Steps:
    1. Select the domain.
    2. Choose PHP version from the list.
    3. Click Apply to change the PHP version.
  • Example: Default PHP version set to 7.2, change as needed.

Using Multi PHP INI Editor

  • Purpose: Edit settings like memory limit, display errors, etc.
  • Steps:
    1. Open Multi PHP INI Editor.
    2. Select the domain to edit.
    3. Available settings for changes:
      • Display Errors
      • Max Execution Time
      • Input Time
      • Memory Limit
      • Explanation provided for each setting.
  • Example Adjustments:
    • Display Errors: Useful for diagnosing 500 errors. Turn on and click Apply.
    • Memory Limit: Increase memory, e.g., from 32MB to 512MB, and click Apply.

Editor Mode

  • Access detailed PHP settings directly.
  • Steps:
    1. Switch to Editor Mode.
    2. Select the domain.
    3. View and verify applied settings (warnings for direct editing).
    • Confirm settings like display errors and memory limit.

Changing Settings Again

  • Return to Basic Mode for adjustments.
  • Steps:
    1. Select domain.
    2. Change settings as needed.

These steps allow you to manage PHP settings efficiently in cPanel for better website performance and error management.