2.11.11. Linux configuration
Attention!
All commands that were manually entered in the.bashrc file will be deleted after saving the changes.
After connecting via SSH, working with the hosting account is done by entering commands in the Bash command shell. Bash has a configuration file named .bashrc, which is located in the root directory of the hosting account. Commands from this file are automatically executed each time the shell is launched. In the control panel, you can perform basic shell settings: set the required versions of PHP, Node.js, Python, and Go, as well as define necessary aliases. Configuration is done through the section "Linux configuration".
PHP version
In the "PHP version" block, the PHP version that will be used in the console is set:
Node.js version
Attention!
Full functionality of Node.js is supported only on business hosting plans. On shared hosting, Node.js can only be used in the console; you cannot run sites or apps that need to listen on ports and be accessible from the outside.
In the "Node.js version" section, the version of Node.js that will be used in the console is set (this also affects the npm version—each Node.js version has its own maximum allowable npm version):
Python version
In the "Python version" block, the version of Python that will be used in the console is set:
Go version
Attention!
Full functionality of Go is supported only on business hosting. On shared hosting, Go can only be used in the console; you cannot run sites or apps that need to listen on ports and be accessible from the outside.
In the "Go version" block, the version of Go that will be used in the console is set:
Aliases
In the "Aliases" block, the necessary aliases are set:
- "Alias" — the name of an alias.
- "Command" — the command that will be executed when the alias is run.
- ➕ — adds a row for another alias.
After entering the required data, click "Save" to apply the changes to .bashrc. These changes will automatically take effect for new SSH connections. If your console was open before making the changes, execute the command source ~/.bashrc or its shortened version . ~/.bashrc, or simply reconnect to apply the new settings.
Hanging processes
In the "Hanging processes" block, you can forcibly terminate all hosting account processes using the "Terminate all processes" button:
Reset settings
.bashrc file are incorrect.
The "Reset settings" button sets the latest available versions of PHP, Node.js, Python, and Go, removes all user aliases, and restores the default .bashrc and .bash_profile files.