Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Web Hosting FAQ  >  What is mean by Absolute Path?
Top Scroll

What is mean by Absolute Path?

 2 min

An absolute path is also referred to as a full path and file path that contains the root element and the complete list of directories to locate the specific file or folder.

Do you want to know how to manage your website data or execute your PHP script manually from your cPanel or via SSH?

Then you are at right place. This article explains where your website data is located and how it can be executed from your servers.

The Data directory (Document Root) of the primary (main) domain where the website files are present is :

/home/cpanelusername/public_html

You need to find out the Document Root from cPanel >> Domains >> Addon domains >> for an addon domain. For sub-domain Document Root can be found using cPanel >> Domains >> Sub-domains.

To execute PHP or Perl scripts via Shell, your absolute paths will be :

/usr/local/bin/php — this is for PHP scripts

For example : /usr/local/bin/php /home/milesweb/public_html/testscript.php

and,

/usr/local/bin/perl — this is for CGI scripts

For example : /usr/local/bin/perl /home/milesweb/public_html/testsciprt.pl

These are some easy ways to manage your website data. For any further queries contact our support team at support@milesweb.com

Also Read :

1)Steps to Connect to Your Account Using Putty SSH Terminal

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.