• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

What is the global php.ini path?

nardevb

New Pleskian
I want to disable some functions for all users and to change some more default settings.

What is the global php.ini path?

Those domain specific php.ini-s are not sufficient in my case.
 
I want to disable some functions for all users and to change some more default settings.

What is the global php.ini path?

Those domain specific php.ini-s are not sufficient in my case.

I'm not sure that changes to the global php.ini file (/etc/php.ini) are persistent. AFAIK, Plesk overwrites the /etc/php.ini file each time Apache restarts/reloads.

In Plesk 11.x...

  • Changes that are specific to a particular service plan should be made in Service Plans -> Your Plan -> PHP Settings: Additional Directives
  • Changes that are specific to a particular subscription should be made in Subscriptions -> Your Domain -> Customize -> PHP Settings: Additional Directives.
HTH,
 
In my case i don't have /etd/php.ini at all.

Unfortunately.

However, i understand that i can change settings for each plan or per account, but it would be much easier to change settings globally.

It's so illogical if that is not possible.
 
In my case i don't have /etd/php.ini at all.

However, i understand that i can change settings for each plan or per account, but it would be much easier to change settings globally.

It's so illogical if that is not possible.

I'm not sure what it does or how it works, but this tool seems like it's got to be related to this topic:

Code:
[root@www psa]# pwd
/usr/local/psa

[root@www psa]# admin/sbin/phpinimng --help
Usage: phpinimng [options] php_ini_file

Options:
  -h, --help            show this help message and exit
  -o OVERRIDE, --override=OVERRIDE
                        Load custom directives
 
Last edited:
I find out:

Main php.ini that is being used if the one at .../domain.ltd/etc/php.ini is missing is at /etc/php5/cgi/php.ini.

Also, if i change some settings at "/usr/share/php5/php.ini-production", that is being replicated on every newly created domain.

I'm thinking of making cron which will erase all default php.ini-s under domain.ltd/etc/php.ini so that my clients dont' override core php.ini.

p.s. I REALLY DON'T UNDERSTAND HOW IS THIS POSSIBLE. Some in Parallels decided to do this leaving users without any article about it and forcing them not to be able to have global php.ini excempt maybe through some web interface...which you can never know what is being done...
 
Last edited by a moderator:
Also, if i change some settings at "/usr/share/php5/php.ini-production", that is being replicated on every newly created domain.

On my system, /usr/share/php is empty (and there is no php5 subdirectory):
Code:
[root@www php]# ll /usr/share/php/
total 0

I'm thinking of making cron which will erase all default php.ini-s under domain.ltd/etc/php.ini so that my clients dont' override core php.ini.

I believe that clients' ability to modify the subscription's php.ini can be disabled. Read the article "Customize PHP Configuration" in the Administration Guide for more information.

HTH,
 
Back
Top