↑ ↓ select, Enter open, Esc close

Show the document root of all domains in Plesk

root@server
plesk db "SELECT d.name, h.www_root FROM domains d JOIN hosting h ON h.dom_id = d.id ORDER BY d.name"

Shows the full document root path for each domain. Useful because subdomains and additional domains are often not located in the expected httpdocs. Ideal before malware scans or scripts that should run across all websites.

Also searched as

  • where are the files of my domain plesk
  • find httpdocs path of a domain
  • find document root plesk

Related one-liners

All in Plesk

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.