Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache root directory?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have just installed Apache for a class I am taking and I am not sure exactly what the root directory for it is. Any help would be appreciated.
Thanks
 
The ServerRoot is where apache keeps its support files like configuration files, logs and modules. These are all kept in their own sub- directories under the ServerRoot. The DocumentRoot is where the web pages are kept. Scripts are usually kept in their own directory called /cgi-bin the html pages are kept in a directory called /html. These are just examples. The actual names and locations of these directories may vary from system to system.
 
Hi,

If it were a tar.gz install then the default would be :

/usr/local/apache/htdocs

(assuming a default install).

For win32 it would be :

C:\Program Files\Apache Group\Apache\htdocs

(or equivalent if on another drive)

Otherwise, it would all depend on how the package was put together. For example, Redhat RPMS use :

/var/
In any event, you need to find where your config file (httpd.conf) is located because anything you want to change is controlled by that file. As RhythmAce says, the 'DocumentRoot' in your httpd.conf points at the physical root content directory as far as Apache is concerned. So if none of the above works for you, find your httpd.conf and look inside for the answer....

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top