Default value of PHP Settings for domains are different from values in global

Started by Suhitha, Sep 10, 2025, 06:03 AM

Previous topic - Next topic

Suhitha

Question: Default value of PHP Settings for domains are different from values in global php.ini


Symptoms

Default values in Domains > example.com > PHP Settings or Service Plan > Plan_name > PHP Settings are different from values like in custom registered php handler at/etc/php.ini.

For example, the default value of the memory_limit for PHP 7.X by OS vendor for a domain is 1024M:

php_default_value.jpg

But in the file /etc/php.ini it is 128M:
# grep memory_limit /etc/php.ini
memory_limit = 128M

Cause

Direct changes in the php.ini file bypassing Plesk.

Plesk stores default values of PHP settings in psa database, and takes them from the database thereafter. The direct php.ini changes do not cause database update.


Resolution

Plesk is aware of the changes in php.ini if they were performed via Plesk Interface.

For the time being, re-read php.ini file via Plesk:

1.Log into Plesk.

2.Go to Tools & Settings > PHP Settings > PHP handler name > php.ini tab and press OK/Apply.

Or:

Go to Tools & Settings > Server Components and press Refresh. Wait for a few minutes for results

Via SSH:

# plesk bin service_node --update local
or

# plesk sbin php_handlers_control --reread

Note: all solutions described require a wait time of 2-3 minutes for changes to be seen.