How to change the list of predefined values, set the default value and forbid to

Started by Suhitha, Mar 07, 2026, 06:03 AM

Previous topic - Next topic

Suhitha

Applicable to:

  • Plesk for Linux
  • Plesk for Windows


Question

How to change the list of predefined PHP values, set the default PHP value and forbid to use custom values for PHP parameters in domain's PHP Settings?


Answer

Such adjustments can be done in the Plesk configuration file panel.ini either via Plesk interface or directly on the server. The file in question can be edited with any text editor and its location depends on the used operating system:

For Linux operating systems, it is/usr/local/psa/admin/conf/panel.ini

For Windows Server operating systems, it is %plesk_dir%admin\conf\panel.ini

You can also edit this file directly via the Plesk GUI by following these steps:

1.Log into Plesk

2.Install the Panel.ini Editor extension at Extensions > Extensions Catalog

3.Go to Extensions > My Extensions > Panel.ini Editor > Open and switch to the Editor tab

Add the following lines to the [php] section (if the [php] section does not exist within the file, add it at the end of the file):

Note: In the example below, the values of the upload_max_filesize PHP parameter are set to include 128M and 256M as predefined values in the drop-down selection list, while 128M is set as the default size and the use of user-defined values is forbidden intentionally.

[php]

; Predefined values in the drop-down list
settings.performance.upload_max_filesize.values[] = 128M
settings.performance.upload_max_filesize.values[] = 256M

; Default value
settings.performance.upload_max_filesize.default = 128M

; Forbid to specify custom values
settings.performance.upload_max_filesize.custom = false

5.Click Save

The list of all PHP parameters and detailed instructions are available on the following page of the Plesk Obsidian documentation:

Customizing PHP Parameters | Plesk Obsidian documentation