2.11.11. Linux configuration
Attention!
All commands written earlier in the file.bashrc
manually, 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, Python and Go, as well as set the necessary aliases. Configuration is done through the section «Hosting → Linux configuration».
PHP version
In the block «PHP version» installs the PHP version to be used in the console:
Node.js version
In the block «Node.js version» installs the version of Node.js that will be used in the console:
Python version
In the block «Python version» installs the Python version to be used in the console:
Go version
In the block «Go version» installs the version of Go that will be used in the console:
Aliases
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.
Hanging processes
In the block «Hanging processes» you can forcibly terminate all processes of the hosting account with the button «Terminate all processes»:
Reset
Button «Reset settings» returns standard versions of PHP, Node.js and Python, removes all custom aliases and returns standard files .bashrc
and .bash_profile
.