I have several PHP versions installed and I wanted to on mass update the disable_functions to my new value for each version. So I looked into running updates from the command line and came up with the following command:
you will also notice there is a symlinked php.ini in /home/user/etc which point to the selected php version of php.ini located at /home/user/etc/php<version no>, so I would guess this file is parsed and will be the ini used for php running in CGI and FastCGI modes. This symlink is parsed when using cli for sure
I guess you have been reading 10 year old posts in order to think that mod_php was involved ? https://archive.virtualmin.com/node/34231
As software develops documentation and/or forum posts should be taken with a pinch of salt.
These commands added/changed the PHP config files for in CGI, FastCGI and PHP-FPM,
~/etc/php/7.4/fpm/pool.d/1231231231231234.conf
~/etc/php7.4/php.ini
They do not change the global PHP configuration files (php.ini / .conf)
Question
In the help file of this command it says:
This command can be used to change the value of a PHP configuration
variable (set in the php.ini file and Apache configuration) for one or
many virtual servers at once.
Do you have any idea if altering the Apache configuration with this tool is still a thing? I would like to make sure, but I do not know what would cause the Apache configuration to be altered by this command.
Using php fpm why would it ? It’s so long since i used mod_php i can not remember if the apache config needed modification but that said I don’t remember have do anything after modding php.ini