Re: Changing command line version of php for apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



--On Sunday, February 14, 2021 1:52 PM -0500 H <agents@xxxxxxxxxxxxxx> 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. The path environment variable isn't part of a shell, but shells provide nice ways to manipulate it. The scripts provided with Software Collections modify the path and possibly other variables before invoking a shell or a program. Environment variables are part of a process' state and are inherited when a process spawns a child. A shell is just a special kind of process that provides interactive support and may provide a programming API.



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux