Knowledgebase
Portal Home > Knowledgebase > Scripting (HTML, PHP, Perl/CGI) > What is the path to my home directory?
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/
|
Add to Favourites
Print this Article
|
Also Read