Information for: DEVELOPERS   PARTNERS

Docroot definition

For more information about Drupal terms and terminology, see the Drupal term index.

When you install Drupal, the directory containing Drupal’s core code files is referred to as its docroot, or document root. Not only does the docroot contain Drupal’s core code files, but it also includes all your websites’ files and directories.

The docroot can have any name. Depending on your hosting environment, you can name the docroot htdocs, public_html, www, or even docroot. To identify the docroot, look for Drupal’s index.php file.

When you encounter docroot in a documented directory path, substitute docroot with the actual docroot path for your environment. If there is an extended path, such as docroot/sites/all, append /sites/all to the actual path of docroot.

Docroot on Acquia Cloud

If you host your website on Acquia Cloud, docroot is a directory called /var/www/html/sitename.env/docroot. The directory and its files are read-only, except for the files stored in the user-uploaded files path (such as /sites/default/files). You can only send files and changes to your website’s code files using a version control system (VCS), including Git.

For more information about files on Acquia Cloud, including user-uploaded files, see the Understanding files Acquia Cloud help page.