On Sat, 14 Nov 2026 17:41:59 -0500, Arne Vajhøj wrote:
> On 11/14/2026 5:17 PM, Lawrence D’Oliveiro wrote:
>> >> On Sat, 14 Nov 2026 13:22:17 -0500, Arne Vajhøj wrote:
>>> >>> On 10/30/2026 7:06 PM, Lawrence D’Oliveiro wrote:
>>>> >>>> Having a global config file to control language features is a >>>> stupid idea.
>>> >>> But having a central config file to control the security of a >>> server is a smart idea.
>> >> But php.ini doesn’t do that. It only covers PHP.
> > True. But point is that it is central - not that it is one file.
Central meaning it affects *all* apps running under that PHP installation. What if a particular configuration setting needed to keep one app secure breaks a different PHP application that somebody else needs to run? This is why having a global config file to control language features is a stupid idea.
> If you have an Apache and are using mod_php to run PHP, then you > have a httpd.conf, various included .conf files (like one for SSL > and one for PHP) and you have a php.ini.
If I were running a Python app, I would still have all the Apache config, no Python-specific Apache module (thank goodness), and no python.ini. What I might also have is separate systemd .service files, one for running each application, which defines the environment that that application sees, and blocks it from seeing anything it shouldn’t. As I mentioned before, this kind of thing is not language-specific, it’s enforced by the kernel, so it’s a much more robust (and general) way of doing things.
> They get created by admin/operations. They get audited by internal > and external IS.
How does the auditor fix things if a php.ini setting needed to secure one app breaks another one?