On 2020-06-23 04:23, Leon Fauster via CentOS wrote:
Am 22.06.20 um 22:27 schrieb H:
It's been a while since I updated to php72 on this machine and there
is some setting I must have forgotten. Apache, root and a user
automatically get php72 when I run php in a terminal window, however,
a php script picks up the wrong version of php, ie php54 and the
version of php in /usr/bin/php is indeed version 5.4.
I have googled without finding the answer but how do I make sure /all/
processes use php72 rather than the default 54 in CentOS 7? Surely
there must be a better way than overwriting /usr/bin/php. What have I
forgotten to do?
Thank you.
If you want it in the terminal with php72 then switch to that context
with (temporarily for this session):
scl enable rh-php72 bash
if I am syntactically wrong about the collection name check it with
scl --list
Thanks Leon! As usually I can tell myself: you learn something every day.
Valeri
--
Leon
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos
--
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos