2

We have hosted one of our Drupal 7 site at Acquia.

How do I find site root directory - /mnt/www/html/mysite/docroot/?

I'm using dpr(shell_exec("drush status")); command in devel/php

Is there anyother way to find it?

2 Answers 2

4

Use DRUPAL_ROOT.

It is defined in index.php as:

define('DRUPAL_ROOT', getcwd());
0
0

Extending Krishna Mohan's answer, you can change directories to the root with:

cd `drush ev "echo DRUPAL_ROOT;"`; cd ..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.