How to Change Document Root

January 09, 2026 63 views

What is Document Root?

Document Root is the directory from which the web server serves your files. By default, it's set to public, which is suitable for most PHP frameworks like Laravel.

Common Document Root Values

Application/Framework Document Root
Laravel public
Symfony public
WordPress . (empty - root)
Vue/React build dist
Static website . (empty - root)

How to Change Document Root

  1. Log in to the user panel
  2. Select your hosting
  3. Go to the Overview tab
  4. In the Configuration section, find the Document Root field
  5. Enter the new value (e.g., public, dist, or leave empty for root)
  6. Click Save

Note: The change takes effect within seconds. The server automatically reconfigures the web server.

Example for WordPress

If you're installing WordPress, set Document Root to an empty value or a dot (.), as WordPress expects files directly in the root directory.

Was this article helpful?

Your feedback helps us improve our documentation

Still need help?

If this article didn't answer your question, our support team is here to help.

Contact Support