Search ServerWatch
Search ServerWatch
Search ServerWatch




Continuous Real-time Data Protection and Disaster Recovery
Whitepaper: Learn how building a solid foundation from a flexible solution can not only integrate all elements within your datacenter - computing, storage, power and management - but prepares your data to survive and recovery... »
Virtualization - It's Not Just for Enterprises Anymore
Whitepaper: Read how virtualization can help companies of all sizes vastly increase server utilization levels, delay or avoid hardware purchases, and expand infrastructure capacity without increasing physical space requirements. »
Rightsizing Blades for the Mid-market
Whitepaper: Examine the requirements for servers, storage, and blade systems in the mid-market and how to apply blades your data center in a cost effective manner. »
VMware Infrastructure 3, Planning
Whitepaper: Read about planning, deployment, and operation of an Adaptive Infrastructure based on VMware Infrastructure and HP servers, storage, and management technologies. »
Disaster recovery made easy with HP BladeSystem and VMware virtualization
Webcast: Learn how you can leverage HP BladeSystem and VMware ESX Server to build a cost effective DR solution that can grow with your business. »

Whitepaper: Innovate Faster with Oracle Database 11g. Learn how you can innovate faster with Real Application Testing, manage more data for less with Advanced Partitioning & Compression & more.

ServerWatch > Tutorials

July 10, 2000
Apache Guide: Configuring Your Apache Server Installation
By Rich Bowen

Most of your server configuration is done in the server configuration files, after you have installed Apache. However, the things that you are able to configure are largely decided when you install the server. That is, if you don't install a particular module, then you cannot configure the things that that module control.

In the configuration stage, before you compile your Apache server, you decide what modules you want installed, where you want files to get put, and a variety of other things. You can also specify various things that get set in the server configuration files, which you can then change afterwards.

In this week's column, we'll talk about some of the things that you can do with the configure utility, so that Apache gets installed exactly the way that you want it.

A Basic Installation

For a basic Apache installation, using all the default settings, simply follow the instructions that you see near the top of the README.configure file:

        tar -zxf apache_1.3.12.tar.gz
        cd apache_1.3.12
        ./configure --prefix=PREFIX
        make
        make install

And of course, even that does not accept all the defaults, because we are specifying where we want the files to be put. PREFIX is not actually the literal string PREFIX, but is the directory under which you want Apache installed, such as /usr/local/apache.

Configure Options

If you simply run configure, without providing any arguments, Apache warns you:

        Configuring for Apache, Version 1.3.12
        + Warning: Configuring Apache with default settings.
        + This is probably not what you really want.
        + Please read the README.configure and INSTALL files
        + first or at least run './configure --help' for

        + a compact summary of available options.

When we type configure --help, we get several pages of options. Many of them will not be covered in this article, but several of them are remarkably useful.

--show-layout
The --show-layout option tells you where Apache will put files when it installs. Running with this option does not actually do anything, it just figures out where everything will wind up if you did configure with the particular options you have selected. This is particularly useful when you are experimenting with various different configurations, and don't want to actually install them to see what they will end up looking like.

--sysconfdir=DIR
The --sysconfdir option lets you specify where the server configuration files will live. With a default installation, there will be a conf subdirectory under the main server root directory, which will contain these files. However, some folks like for all their configuration files of any kind to be located in /etc, and so you might want to do:

        ./configure --sysconfigdir=/etc/httpd

--htdocsdir=DIR
--htdocsdir sets the location where web documents will be stored, and served from. If, for example, you install Apache from the RPM (Red Hat Package Manager) file, you will find that the document directory is located in /home/httpd/html, while the other files are located at various other places around the system.

Other File Locations

There are also a number of directives like the last few, which let you set the location of files. --iconsdir sets the location of the icon files, --bindir and --sbindir set the locations of the binary executables, and so on.

Go to page 1  2  3  


Discuss this article
Tools:
Add serverwatch.com to your favorites
Add serverwatch.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x

Tutorials Archives




JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES