On 11/14/2026 5:48 PM, Lawrence D’Oliveiro wrote:
> 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.
The details depend on the execution context.
Apache with mod_php can be problematic because PHPIniDir is per
server not per virtual host.
The modern servers will typical be
1 app - 1 server - 1 IP endpoint - 1 php.ini
so no problem.
>> 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,
Similar to what the modern PHP servers does.
It wastes memory, but provides flexibility.
Arne