Plesk document root?

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
565
Points
28
I am having a Plesk control panel and hosting a few blogs on it. One of blogs requires document root to setup a small script for it. I know how to find in cPanel but not for Plesk. Can you guys tell me the way how to find document root in Plesk?
 

mobin

Well-known member
Registered
Joined
Jun 22, 2017
Messages
234
Points
28

Bryan McClure

Well-known member
Registered
Joined
Jul 20, 2016
Messages
271
Points
18
It should be something similar to "/var/www/vhosts/<domain_name>/httpdocs" as far as I rememeber. You can refer following articles also for more information.
The document root for the plesk is as below -

On Linux: /var/www/vhosts/<domain_name>
On Windows: C:\inetpub\vhosts\<domain_name>
Just out of curiosity, if I can check these paths with a command in terminal like I used to check php.ini file location on my VPS?
 

mobin

Well-known member
Registered
Joined
Jun 22, 2017
Messages
234
Points
28
mobin
Yes, you can accesss the directory from CLI . Just login to your server using SSH, "cd" to the document root directory and run "ls" to see the list of files/dirs. Be very careful if you are not very familiar with CLI; one mistake can destroy your VPS easily.
 

Laurence Flynn

Well-known member
Registered
Joined
Dec 31, 2016
Messages
92
Points
8
Document root is set at server install. We use /home/httpd/vhosts/domain.com rather than /var/www.
 
Recommended Threads
Replies
14
Views
8,826
Replies
7
Views
3,871
Replies
18
Views
14,942

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top