Apache HTTP Server

From WebHostingBuzz Wiki

Jump to: navigation, search

Image:Apache_webhostingbuzz.jpg‎ Apache is a powerful, commercially usable and free software used to run HTTP server. It is developed and managed by a group of volunteer programmers from all corners of the world, contributing to the continuing enhancement of its code. This software is part of the Apache Software Foundation. Apache currently stands to be the most popular and widely used HTTP server software in the world. We are posting some basic information below which should help you manage your Apache server software:

Contents

Requirements for installing Apache HTTP Server

  • Disk Space: 60 MB minimum.
  • ANSI-C Compiler and Build System: ANSI-C compiler from GNU C compiler or any other basic ANSI compliant compiler should do.
  • Up to date time: Use ntpdate or xntpd programs.
  • Perl 5: It is optional.
  • apr/apr-util >= 1.2: They come with Apache HTTP server.

Download Apache HTTP Software

It can be downloaded from Apache HTTP Server download site.

How to extract Apache HTTP Server?

$ gzip -d httpd-NN.tar.gz
$ tar xvf httpd-NN.tar

Please cd into the directory where it is extracted to before moving on.

How to configure source tree?

Type

./configure

To study various options we recommend you read Apache Configure Manual.

How to build Apache HTTP Server?

To install the package under the configured installation, type

$ make install

How to customize Apache HTTP Server?

You can edit its configuration files to customize it. Type

$ vi PREFIX/conf/httpd.conf

How to start Apache HTTP Server?

To start type

$ PREFIX/bin/apachectl -k start

You can access the document at http://localhost/

How to stop Apache HTTP Server?

To stop type

$ PREFIX/bin/apachectl -k stop

How to upgrade Apache HTTP Server?

For minor version upgrade, search for the file config.nice in the build directory of your installed server. To upgrade from one version to the next, you need only copy the config.nice file to the source tree of the new version, edit to your required settings and run:

$ ./config.nice
$ make
$ make install
$ PREFIX/bin/apachectl -k graceful-stop
$ PREFIX/bin/apachectl -k start

Where can I find Apache HTTP Server Manual?

Apache HTTP Server Version 2.2 Documentation / Manual









References:

www.gnu.org/software/gcc/gcc.html
httpd.apache.org/docs/2.2/install.html

Web Hosting Buzz

Web Hosting provider WebHostingBuzz has written this tutorial for its users. You as a visitor are free to link to this website. All trademarks are the property of their respective owners. (c) Copyright WebHostingBuzz.com. All rights reserved.

Personal tools