How to Change the Document Root Directory in Plesk?

Want to change the Document Root directory of your website?

You might!

When you create a website, Plesk adds new virtual host to the server and also created the website’s directory structure. It automatically fills each directory with the essential content required.

But the default Document Root directory and folder can be changed using Plesk.

Want to know how you can do that?

If yes, then read this article by the best Pakistani web hosting company:

Image 1

 

What is Your Website’s Default Document Root Directory in Plesk Hosting?

As we just discussed above, when you create a website using Plesk, a new virtual host is added to the server and the site’s directory structure is created automatically by Plesk.

The structure of these directories is defined by the default virtual host template.

The path to the directory by default is as follows:

/var/www/vhosts/<domain_name>

The Document Root directory of your website is located in this folder and that is where all of the web content of your domain is stored.

This folder, by default, is: httpdocs.

However, you can always easily change the default Document Root folder in Plesk Panel by following these simple steps below:

Step 1: Log in to Plesk

Step 2: Go to “Websites and Domains”

Step 3: Click on “Hosting Settings”

Step 4: Enter the Desired File Path in the “Document Root” Box

Step 5: Click on “OK”

 

Step 1:

Log in to Plesk

Before you can change the default Document Root directory in Plesk, you’d need to login to your Plesk Panel account.

Image 2

 

Step 2:

Go to “Websites and Domains”

Logged in successfully?

Now head over to the “Websites & Domains” option in the left side bar.

Here, you’d need to locate the domain that you wish to edit.

 

Step 3:

Click on “Hosting Settings”

After you’ve located the desired domain, click on “Hosting Settings”, and wait for the “Hosting Settings” page to appear.

Image 3

 

Step 4:

Enter the Desired File Path in the “Document Root” Box

On the “Hosting Settings” page, you’d see a “Document Root” text box.

Image 4

 

In the text box, type the file path that you wish to use for the new Document Root directory.

Image 5

 

Step 5:

Click on “OK”

All done!

Now, to save the changes, click on the “OK” option and Plesk would change the Document Root directory.

Image 6

 

Looking for a provider of web hosting in Karachi? Simply search Google for “website hosting in Pakistan” and choose a company that offers the right package!

 

 

  • 0 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

Plesk Docs

http://www.parallels.com/products/plesk/docs/

How we can delete parked domain?

To remove a parked domain, Please follow below simple steps:Step-1:Login to plesk panel by using...

MX entires for google apps

MX Server ddress                   Priority SPMX.L.GOOGLE.COM.           10...

Windows Sites preview Offline

Below article will assist you in checking the preview of your domain while your domain is in...

What is Plesk

  The Parallels Plesk Panel (ex: Parallels Plesk Control Panel, Plesk Server Administrator,...