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
- Log in to the user panel
- Select your hosting
- Go to the Overview tab
- In the Configuration section, find the Document Root field
- Enter the new value (e.g.,
public,dist, or leave empty for root) - 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