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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installation Directory(s) Tree for Apache2?

Status
Not open for further replies.

BobMCT

IS-IT--Management
Sep 11, 2000
756
US
Gentlemen;

Installing a new web server with Linux, Apache2, php5, etc.

The installation and configuration directory locations have changed from version 1.3x and even early apache2.

Is there a "recommended" standard tree for apache2 under Linux published anywhere?

If so, please advise?

Thanks,

B
 
Actually there is no standard. Each distro sets it up their own way. As a general rule, they put the httpd directory under /etc. This has all the sub directories which hold the configuration files and logs. It is refered to as "ServerRoot" in httpd.conf. As for the directories that hold the actual web spaces, that varies. Some set them up under /home while other prefer /var/www. You can put these anywhere on the drive and just need to point to them from within httpd.conf. If you change the location of httpd.conf whowever, you will need to specify its location on the command line when you call httpd. Since it is usually called at system boot up, you will need to edit apache's start up script and point to it there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top