Hi!
I would like to know if there is a way to list all accounts php version.
I have this command line:
But this returns something like this:
Then i have to run this:
To have the accounts list.
After this i have to go account by account by the same exact order to see what is the selected php version of every account.
I have more than 100 on a server.
So, is there a command to list the accounts php selected? For example like this:
A better way would be to have some panel to see a list of all accounts and manage the php version from the CloudLinux LVE Manager.
Thanks
Nuno Leite
I would like to know if there is a way to list all accounts php version.
I have this command line:
Code:
ls -1 /var/cpanel/users | grep -v "." | awk { print "selectorctl --interpreter=php --user-summary --user="$1 } | sh
Code:
5.3 e - - 5.4 - - - 5.5 - - - 5.6 e - s 7.0 e - - 7.1 e d - 7.2 e - - 7.3 e - - native e - - 5.3 e - - 5.4 - - - 5.5 - - - 5.6 e - s 7.0 e - - 7.1 e d - 7.2 e - - 7.3 e - - native e - - 5.3 e - - 5.4 - - - 5.5 - - - 5.6 e - s 7.0 e - - 7.1 e d - 7.2 e - - 7.3 e - - native e - -
Code:
ls -1 /var/cpanel/users | grep -v "."
After this i have to go account by account by the same exact order to see what is the selected php version of every account.
I have more than 100 on a server.
So, is there a command to list the accounts php selected? For example like this:
Code:
account1 5.5 account2 7.0 account3 7.0 account4 5.6 account5 7.1 etc...
Thanks
Nuno Leite
Comment