Re: [CentOS] Changing command line version of php for apache

2021-02-14 Thread Kenneth Porter
--On Sunday, February 14, 2021 1:52 PM -0500 H wrote: Apart from what you described above, is it in general possible to force a non-shell user to use a specific version of software when multiple versions are installed on a machine, be it php, python or something else? As I said, use the path

Re: [CentOS] Changing command line version of php for apache

2021-02-14 Thread H
On 02/14/2021 12:51 PM, Kenneth Porter wrote: > --On Saturday, February 13, 2021 9:59 PM -0500 H > wrote: > >> But my question is also a more general one: short of ridding the system >> of the old, default php 5 binary, how should I configure a user without a >> shell such as apache to default to

Re: [CentOS] Changing command line version of php for apache

2021-02-14 Thread Kenneth Porter
--On Saturday, February 13, 2021 9:59 PM -0500 H wrote: But my question is also a more general one: short of ridding the system of the old, default php 5 binary, how should I configure a user without a shell such as apache to default to the newer php binary? As mentioned previously, apache its

Re: [CentOS] Changing command line version of php for apache

2021-02-13 Thread H
On 02/13/2021 09:43 PM, Jonathan Billings wrote: > On Feb 13, 2021, at 17:43, H wrote: >> But apache does not have a shell where I issue that command? And, a change >> needs to survive a reboot. > Perhaps it might help if you explained how the Apache user is running the > commands? Cron job? S

Re: [CentOS] Changing command line version of php for apache

2021-02-13 Thread Jonathan Billings
On Feb 13, 2021, at 17:43, H wrote: > > But apache does not have a shell where I issue that command? And, a change > needs to survive a reboot. Perhaps it might help if you explained how the Apache user is running the commands? Cron job? Systemd service? The “scl” commands are used to run t

Re: [CentOS] Changing command line version of php for apache

2021-02-13 Thread H
On 02/13/2021 05:05 PM, Leon Fauster via CentOS wrote: > Am 13.02.21 um 21:59 schrieb H: >> I have updated php on a Centos 7 system to use php 7.2 from sclo. Apache >> running on the system is also using php 7.2 as shown by phpinfo(), however, >> apache continues to use the default version of php

Re: [CentOS] Changing command line version of php for apache

2021-02-13 Thread Leon Fauster via CentOS
Am 13.02.21 um 21:59 schrieb H: I have updated php on a Centos 7 system to use php 7.2 from sclo. Apache running on the system is also using php 7.2 as shown by phpinfo(), however, apache continues to use the default version of php, ie 5.4.16, when that user launches a process from the command

Re: [CentOS] Changing command line version of php for apache

2021-02-13 Thread Leon Fauster via CentOS
Am 13.02.21 um 21:59 schrieb H: I have updated php on a Centos 7 system to use php 7.2 from sclo. Apache running on the system is also using php 7.2 as shown by phpinfo(), however, apache continues to use the default version of php, ie 5.4.16, when that user launches a process from the command