The Document root directory in Plesk contains the files of a single website for the primary domain. To change it follow the below steps.
- Login to the Plesk Panel.
- Click on the Websites and Domains.
- Click on the Hosting Setting.
- Enter your desired directory path (by default it is httpdocs).
- Scroll down to the bottom and click on the OK button.
Now the document root directory for your primary domain is changed successfully.