Today we will learn to change PHP version using PHP selector through command line. Earlier we have cl-selector tool in use on Linux but now it is depreciated and replaced with selectorctl. It is available with CageFS 5.1.3 version and above.
First of all we have to check the current version of the particular user we are dealing with through this command:
[QUOTE]# selectorctl --user-current --user=username[/QUOTE]
If you want to check the native version too then runthis command:
Now, to set specified version to the user we have to run this command:
Eg: we have set PHP version 5.6 in this example.
First of all we have to check the current version of the particular user we are dealing with through this command:
[QUOTE]# selectorctl --user-current --user=username[/QUOTE]
If you want to check the native version too then runthis command:
Now, to set specified version to the user we have to run this command:
Eg: we have set PHP version 5.6 in this example.