I can easly change and custom all php.ini-s for each domain, however, i don't know how to customize the core one?
I want to be able to limit some settings globally but i don't know which php.ini is the core one?
I can easly change and custom all php.ini-s for each domain, however, i don't know how to customize the core one?
I want to be able to limit some settings globally but i don't know which php.ini is the core one?
Create a simple document in a web root (for example, named test.php
and put the following in it:
<?php
phpinfo();
?>
Then access that page with a web browser. For example http://mydomain.com/test.php
. You will be shown, among a lot of other information, where your master php.ini file is.
According to Plesk's own documentation:
Usually the php.ini location is /etc/php.ini. PHP modules *.ini files are placed in /etc/php.d. Also, you can find which configuration files are used by PHP by using a script with the phpinfo() function:
From Plesk's support forums:
PHP loads additional configuration files from /etc/php.d folder. As example, /etc/php.d/00-ioncube-loader.ini. These ini files are configs for PHP extensions.