nuno.pereira
New Pleskian
- Server operating system version
- CentOS Linux release 7.9.2009 (Core)
- Plesk version and microupdate number
- Plesk Obsidian Version 18.0.46
Hi all.
According to the article in https://support.plesk.com/hc/en-us/articles/115001152233, the PHP settings can be changed in domain, service plan or globally.
I'm trying to figure out a way to determine what is the configuration of disable_functions in the PHP settings for all of my domains.
This parameter settings can be updated in the "Performance and security settings" group, or can also be changed in the Additional configuration directives (which takes precedence over the former).
With the following query I can get the configuration of this parameter (in table PhpSettingsParameters) and of additional parameters (table PhpSettingsCustom), but only from what's defined for the subscription. If the settings are updated on the domain I can't find them.
Does anyone knows how to get this configuration, no matter where it was defined?
Thak you in advance.
According to the article in https://support.plesk.com/hc/en-us/articles/115001152233, the PHP settings can be changed in domain, service plan or globally.
I'm trying to figure out a way to determine what is the configuration of disable_functions in the PHP settings for all of my domains.
This parameter settings can be updated in the "Performance and security settings" group, or can also be changed in the Additional configuration directives (which takes precedence over the former).
With the following query I can get the configuration of this parameter (in table PhpSettingsParameters) and of additional parameters (table PhpSettingsCustom), but only from what's defined for the subscription. If the settings are updated on the domain I can't find them.
SQL:
select
d.name, psp.id, psc.value custom_value, psp.value param_value
from
domains d, Subscriptions s
LEFT JOIN SubscriptionProperties sp ON (s.id=sp.subscription_id and sp.name='phpSettingsId')
LEFT JOIN PhpSettingsCustom psc ON (psc.id = sp.value and psc.`value` like 'disable_functions=%')
LEFT JOIN PhpSettingsParameters psp ON (psp.id=sp.value AND psp.`name` = 'disable_functions')
where
d.status = 0 AND
d.id=s.object_id and s.Object_type='domain'
Does anyone knows how to get this configuration, no matter where it was defined?
Thak you in advance.