What Is Absolute Path in web hosting

Absolute path is used for managing your website data or executing a PHP script of yours manually from our cPanel or via SSH?

Here is an explanation of where your website data is located and is being executed from our servers:

  • The Data directory or Document Rootof the primary/main domain where the website files are present is:
    /home/cpanelusername/public_html
  • For an addon domain or sub domain, you need to find out the Document Root from cPanel >> Domains>> Addon domainsor cPanel >> Domains>> Sub domains This is setup at the time of addon or sub domain creation.
  • If you wish to execute PHP or perl scripts via Shell, your absolute paths are :
    /usr/local/bin/php//for PHP scripts eg: /usr/local/bin/php  /home/pickaweb/public_html/testscript.php and, /usr/local/bin/perl   //for CGI scripts eg: /usr/local/bin/perl  /home/pickaweb/public_html/testscript.pl

 

Was this article helpful?

Related Articles

Leave A Comment?