• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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