What is the path to my home directory?

When you configure a script for any server, it may ask you to set variables such as the base, relative, CGI directory, and URL settings.

** For cPanel/WHM, DirectAdmin, and Interworx based servers the home directory will be /home/USERNAME/

Your webpath will be
/home/USERNAME/public_html/

which will serve:
http://www.your_domain.com/

So if you need the path to your cgi-bin it would be:
/home/USERNAME/public_html/cgi-bin/

which would serve:
http://www.your_domain.com/cgi-bin/ 

** For Plesk based servers the home directory will be /var/www/vhosts/DOMAIN.TLD/

Your webpath will be
/var/www/vhosts/DOMAIN.TLD/httpdocs/

which will serve:
http://www.your_domain.com/

So if you need the path to your cgi-bin it would be:
/var/www/vhosts/DOMAIN.TLD/cgi-bin/

which would serve:
http://www.your_domain.com/cgi-bin/

Please change USERNAME, DOMAIN.TLD, and your_domain.com to your username and domain.
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

What are some basic software paths?

Sendmail: /usr/lib/sendmailPerl5: /usr/bin/perlServerpath: /home/username/public_htmlRoot path:...

How do I change File Permissions?

If you're new to scripting, or getting the dreaded "Internal Server Error" when you try to run a...

What is SSI (Server Side Includes) and how can I use it?

Server Side Includes (SSI) is a feature of CGI that enables you to dynamically insert a piece of...

Where do I place CGI scripts?

Although you can place cgi scripts in random directories throughout your site, it's best if you...

What is PHP and how do I use it?

PHP is a powerful server-side scripting language that can be used to extend the functionality of...