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,suand setuid programs give no extra rights.phpis the site's own PHP version, socomposerandphp artisanwork as expected. New files get thewww-datagroup so the web server can read them.merpis 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=0bash
sudo systemctl restart hostagent