What is the path to my home directory?

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

** In case of 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/

** In case of 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/

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

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...

php modules are installed on servers?

Here is a brief list of php4 modules that come standard with our shared/sdx/reseller...

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...

Can I run PHP scripts anywhere on my site?

Yes, PHP scripts do not have to reside in a particular directory and will run anywhere on your...

I want to use php sessions without cookies?

This is a development issue and is explained in the php manual:http://www.php.net/sessionThere is...