2.10.18. Linux configuration
Attention!All commands written earlier in the file
.bashrcmanually, after saving the changes will be deleted.
After SSH connections working with a hosting account is done by entering commands in the Bash shell. Bash has a config file
.bashrc, which is located in the root directory of the hosting account. The commands in this file are automatically executed each time the shell is started. In the control panel, you can perform basic shell settings: install the necessary versions of PHP, Node.js and Python, as well as set the necessary aliases. Configuration is done through the section "Hosting → Linux configuration".
In the block "PHP version" installs the PHP version to be used in the console:
For business hosting onlyNode.js available only on businesshosting.
In the block "Node.js version" installs the version of Node.js that will be used in the console:
In the block "Python version" installs the Python version to be used in the console:
In the block "Aliases" the necessary aliases are set:
- "Alias" - the name of the alias.
- "Team" — the command to be executed when the alias is executed.
- "+" — adds a line for one more alias.
After specifying the required data, click "Save"to make changes to
.bashrc... They will take effect automatically for new SSH connections. To apply the new settings in the console that was open before making the changes, run the command
source ~/.bashrc or its shortened version
. ~/.bashrc, or just reconnect.
In the block "Hanging processes" you can forcibly terminate all processes of the hosting account with the button "Terminate all processes":
Button "Reset settings" returns standard versions of PHP, Node.js and Python, removes all custom aliases and returns standard files