• E Hënë, Shkurt 23, 2026

Understanding and customizing PHP settings is crucial for optimizing the performance, security, and functionality of your websites. Whether you need to adjust parameters for a specific domain, apply settings across multiple sites via a service plan, or configure global PHP directives, your control panel provides robust tools to manage these configurations. This guide will walk you through the various methods to modify PHP settings efficiently.

Customizing PHP Settings for a Specific Domain

When a particular website requires unique PHP configurations, you can tailor its settings directly. This approach ensures that specific applications or scripts run optimally without affecting other domains on your server.

  1. Access your control panel.
  2. Navigate to the Domains section, then select the specific domain (e.g., example.com) for which you want to adjust settings. Look for the PHP Settings option.
  3. Review the available PHP parameters and modify values as needed. Simply click on a value field to enter a custom setting. After making your adjustments, ensure you apply the changes to save them.

PHP Settings

This method offers granular control, allowing you to fine-tune PHP behavior for individual websites.

Customizing PHP Settings for All Domains Under a Service Plan

For users managing multiple domains that share similar requirements, applying PHP settings at the service plan level offers an efficient way to standardize configurations. This ensures consistency and reduces repetitive tasks across linked subscriptions.

  1. Access your control panel.
  2. Proceed to Service Plans, then select the relevant plan_name, and navigate to PHP Settings.
  3. Modify the PHP settings according to your requirements. Once satisfied, click Update & Sync to apply these changes to all associated domains.

It's important to note that these new settings might not immediately apply to existing subscriptions if they are explicitly locked from syncing with their service plan or if specific permissions settings allow individual PHP management for that plan.

PHP Settings

Customizing PHP Settings Globally

Global PHP settings define the default behavior for all PHP installations on your server. Adjusting these settings can establish a baseline for performance and security across all hosted environments, providing a foundational configuration.

  1. Access your control panel.
  2. Go to Tools & Settings, then PHP Settings. Select the specific PHP version you wish to configure (e.g., for any application) and switch to the php.ini tab.
  3. Here, you can modify values for existing PHP parameters or introduce custom directives. After making your changes, apply them to save.

A critical consideration is that any customized PHP settings configured at the domain level will always override directives set in the global php.ini file. If you wish a domain to inherit values from the global PHP configuration, you can typically find a "Reset To Default" option next to individual PHP parameters within the domain's PHP settings.

Commonly Adjustable PHP Parameters

Within the PHP settings interface of your control panel, you'll find a comprehensive range of parameters that can be adjusted. These are categorized to help you manage specific aspects of PHP's behavior:

  • Performance and Security Settings
    • memory_limit: Defines the maximum amount of memory a script can consume.
    • max_execution_time: Sets the maximum time in seconds a script is allowed to run.
    • max_input_time: Specifies the maximum time in seconds a script is allowed to parse input data.
    • post_max_size: Determines the maximum size of POST data that PHP will accept.
    • upload_max_filesize: Sets the maximum size of an uploaded file.
    • opcache.enable: Controls whether the OPcache extension is enabled for performance improvement.
    • disable_functions: A comma-separated list of functions that are disabled.
  • Common Settings
    • include_path: Specifies a list of directories where PHP will look for files.
    • session.save_path: Defines the path where session data is stored.
    • mail.force_extra_parameters: Allows specifying extra parameters for the sendmail program.
    • open_basedir: Limits all file operations to a specified directory tree.
    • error_reporting: Sets the level of error reporting.
    • display_errors: Determines whether errors should be printed to the screen.
    • log_errors: Specifies whether errors should be logged to a file.
    • allow_url_fopen: Allows PHP to open remote files using URL wrappers.
    • file_uploads: Enables or disables HTTP file uploads.
    • short_open_tag: Allows the use of the short form <? tags for PHP.
  • PHP-FPM Settings (If PHP is running as an FPM application)
    • pm.max_children: The maximum number of children that can be alive at the same time.
    • pm.max_requests: The number of requests each child process should execute before respawning.
    • pm: Process manager control.
    • pm.start_servers: The number of children created on startup.
    • pm.min_spare_servers: The minimum number of idle server processes.
    • pm.max_spare_servers: The maximum number of idle server processes.

For advanced configurations, additional PHP parameters or custom values can be specified in the Additional configuration directives field. This field is typically accessible to server administrators for fine-grained control over the PHP environment.

Additional configuration directives field

When defining values that specify digital memory capacity, use the following standard units:

  • K for kilobytes
  • M for megabytes
  • G for gigabytes