Forum Moderators: phranque

Message Too Old, No Replies

Question about Document Root.

         

judge schmells

3:05 pm on Jun 9, 2005 (gmt 0)



Hi, I have set up Apache and PHP as best as I know how. I made my document root F:/www. and this is what comes up when I punch in my IP address. However, I notice on servers I have hosted on that when I log on via FTP there are many levels of folders before you get down to the one that actually hosts the website. i.e. ftp.domainname.com and under that there is bin, databases, etc, lib, usr websites and under websites there is cgi-bin and html and inside html is where the website actually resides.

How do you tell Apache that one thing is the main root of the web, but another folder (html) will house the actual web. The reason I ask is I need a folder above my "html" folder to hold some things I need only PHP to access.

Thanks!

Judge S.

coopster

5:56 pm on Jun 9, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, judge schmells.

ServerRoot [httpd.apache.org] and DocumentRoot [httpd.apache.org] are the directives you are referring to.