Frequently Asked Question

How to change Document Root
Last Updated 10 months ago

Here are the general steps for changing the document root to the "public" folder in different control panels:

cPanel:

  1. Log in to cPanel.
  2. Navigate to "Addon Domains" or "Domains."
  3. Find the domain you want to update and click "Manage."
  4. In the Document Root field, change the path to the "public" folder (e.g., /public_html/public).
  5. Save the changes.

Plesk:

  1. Log in to Plesk.
  2. Go to "Domains."
  3. Find the domain you want to update and click on it.
  4. Go to the "Hosting Settings" tab.
  5. In the Document root field, change the path to the "public" folder (e.g., /httpdocs/public).
  6. Save the changes.

DirectAdmin:

  1. Log in to DirectAdmin.
  2. Click on "Domain Management."
  3. Find the domain you want to update and click on it.
  4. In the Document Root field, change the path to the "public" folder (e.g., /domains/example.com/public_html/public).
  5. Save the changes.

Webmin / Virtualmin:

  1. Log in to Webmin or Virtualmin.
  2. Go to "Servers" and select "Apache Webserver" or "Virtualmin."
  3. Find the domain you want to update and click on it.
  4. Go to the "Server Configuration" section.
  5. In the Document Root field, change the path to the "public" folder (e.g., /home/example/public_html/public).
  6. Save the changes.

ISPConfig:

  1. Log in to ISPConfig.
  2. Go to the "Sites" tab.
  3. Find the website you want to update and click on it.
  4. Go to the "Options" tab.
  5. In the Document Root field, change the path to the "public" folder (e.g., /var/www/clients/client1/web2/public).
  6. Save the changes.

VestaCP:

  1. Log in to VestaCP.
  2. Go to the "Web" tab.
  3. Find the domain you want to update and click on it.
  4. In the Directory field, change the path to the "public" folder (e.g., /home/user/web/domain/public_html/public).
  5. Save the changes.

Froxlor:

  1. Log in to Froxlor.
  2. Go to the "Domains" section.
  3. Find the domain you want to update and click on it.
  4. Go to the "Settings" tab.
  5. In the Document Root field, change the path to the "public" folder (e.g., /var/customers/webs/domain/public).
  6. Save the changes.

Please remember that these are general steps and might vary based on the specific setup of your hosting environment and the version of the control panel you're using. Always refer to the official documentation or support resources for your chosen control panel for accurate instructions.

Please Wait!

Please wait... it will take a second!