Skip to content

Terminal ​

The Terminal button on a site's page opens a shell for that site in your browser. It is for the site owner and admins.

How it is kept safe ​

  • It runs as the site's own Linux user and group, not root and not www-data, inside the site's folder. Other sites and system files are out of reach.
  • sudo, su and setuid programs give no extra rights.
  • php is the site's own PHP version, so composer and php artisan work as expected. New files get the www-data group so the web server can read them.
  • merp is ready to use for that site (see Command line).
  • A session closes after 30 minutes without typing, or 4 hours at most. Up to 2 sessions per site and 8 per server. Every opening is in the activity log.

Typical uses: composer install, npm ci && npm run build, php artisan migrate, wp plugin list, git pull.

Turn it off ​

The terminal needs the Terminal right and is closed in Safe Mode. To turn it off on a whole server, add this to /etc/hostpanel/agent.env and restart the agent:

bash
HOSTAGENT_TERMINAL=0
bash
sudo systemctl restart hostagent

SetServer Panel documentation