In the Plesk interface, you and your customers can fine-tune the PHP
settings for individual service plans, add-on plans, subscriptions,
websites, and subdomains. One can change the values of some of the most
frequently used PHP parameters by selecting the desired value from a
list or specifying a custom value. By editing the
panel.ini file, you can make the following changes to
this scenario:
- Determine what predefined values a PHP parameter can take.
- Change the default value for a PHP parameter.
- Forbid specifying custom values for PHP parameters.
Determining what predefined values a PHP parameter can take
For most PHP parameters, one can select a single value from a list of
predefined values. You can create a custom list of predefined values a
PHP parameter can take by adding one or more lines following the pattern
below to the panel.ini file:
[php]
settings.<parameter_group>.<parameter_name>.values[]=<value>
where
-
<parameter_group>
is the group the chosen PHP parameter belongs
to. For more information about the groups of PHP parameters, read
“PHP parameters and parameter groups” below. -
<parameter_name>
is the name of the chosen PHP parameter. Use the
same syntax as in php.ini. -
<value>
is the predefined value of the parameter you want to add
to the list. Use the same syntax as in php.ini.
You need to add one line for every predefined value you want to appear
on the list.
For example, by default, the memory_limit
parameter can take one of
the following values: 8M
, 16M
, 32M
, 64M
, and 128M
.
If you want to restrict the choice to 64M
and 128M
only, add the
following lines to…