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
:
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:
-
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.