• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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