What is it?
CloudLinux is a version of Linux made for hosting. Its Selector feature lets each user pick the language version for their app, such as a Node.js version. In the control panel you click buttons. The cloudlinux-selector tool does the same work by typing commands. This is handy for scripts, or for managing many accounts from one place.
"Remote usage" means you connect to the server over SSH (a safe way to type commands on a faraway computer) and run the tool there. Another program can also run it the same way.
Before you start
- Your server must run CloudLinux with the Selector feature turned on.
- You need root access over SSH.
- Not sure CloudLinux is on your plan? Ask Hostvento support.
Steps
- Open a terminal on your computer.
- Connect to your server. Use the IP address from your welcome email:
ssh root@YOUR_SERVER_IP
This logs you in as the root user.
- See the apps of one user. Replace
usernamewith the real account name:
cloudlinux-selector get --json --interpreter nodejs --user username
This lists the Node.js apps and their settings. The --json part prints the answer in a tidy format that programs can read.
- To see the other languages, change
nodejstopythonorruby. - Run
cloudlinux-selector --helpto see every command and option your version supports.
Things to remember
- Commands that create, change or destroy apps can affect live websites. Take a backup first.
- Option names can differ a little between versions. Trust the output of
--helpon your server. - Use the exact username of the account, not the domain name.
get. They show information and change nothing.Quick recap
- cloudlinux-selector manages app languages on CloudLinux from the command line.
- Connect with SSH as root, then run the tool.
- Use
getto look, and--helpto learn more. - Back up before you change anything.