homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

How do you find the root directory of your website?
need to install a script

 8:34 am on May 22, 2008 (gmt 0)

I found a script that i want to install but in the setup it asks for the root directory of my site e.g www/home/html how do I find out what it is?




 9:49 am on May 22, 2008 (gmt 0)

It should be apparent if you view your site using FTP.

Type in ftp://yourdomain.com in your browser - most browsers provide a directory view even if they don't permit files to be uploaded. (In Vista, use Explorer not Internet Explorer.)



 3:03 pm on May 22, 2008 (gmt 0)

FTP (as mentioned by kaled) or via the File Manager in your server control panel.



 2:58 pm on May 24, 2008 (gmt 0)

The domain root can be varied depending on how the server is set up. The sure fire way: run this little script. :-) It will display all environment variables, including DOCUMENT_ROOT, which is what you're after.

Name it something like envars.cgi, upload it to your cgi executable directory, set the permissions to executable (755,) and be sure to remove it from your server when you're done - you don't want someone stumbling on it and getting information about your server environment.

print "content-type:text/html\n\n";
foreach $varname (sort keys %ENV) {
print "$varname $ENV{$varname}<br>\n";

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved