2.10.18. Linux configuration


All commands written earlier in the file .bashrc manually, after saving the changes will be deleted.

After connecting to hosting via SSH 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 required PHP and Python versions, and set the required aliases. The setting is done through the section "Hosting → Linux configuration":

In the block "PHP version" installs the PHP version to 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.

Button "Reset settings" returns the standard PHP and Python versions, and also removes all user aliases by completely reversing the files .bashrc and .bash_profile to its original state.

In the block "Hanging processes" you can forcibly terminate all processes of the hosting account with the button "Terminate all processes":