|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #80890 phpinfo should make it clear what files define local and master cofiguration
Submitted: 2021-03-19 17:14 UTC Modified: -
From: jab_creations at yahoo dot com Assigned:
Status: Open Package: *General Issues
PHP Version: 7.4.16 OS: *nix/Win
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
27 + 39 = ?
Subscribe to this entry?

 [2021-03-19 17:14 UTC] jab_creations at yahoo dot com
Some of our hosts use cPanel and unfortunately cPanel gets a bit excessive with how many copies of php.ini files they have all over the file system. In fact the file system is a mess!

Any way I've been reviewing various PHP settings trying to make it more difficult for troublemakers to do things e.g. the request variables were set to 10,000! I called my host and they had trouble figuring out where the local settings were being defined.

I think it'd save a lot of people the headache of testing numerous php.ini files if the phpinfo() function showed a list of each local and mater configuration file (and their absolute path).

Additionally I personally don't like seeing cPanel add PHP settings to the Apache .htaccess configuration files (that is for Apache, whatever...) and I think it'd be very useful to know if any other configuration files such as Apache's configuration files were being used for anything.

Test script:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2023-06-12 11:26 UTC] getfinanceinvestment at gmail dot com
Getfinanceinvestment are sharing latest news about finance, business, loan, investment, trading, banking, demat account, tax etc. More info to visit: (
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 01:01:28 2023 UTC