INSTALLING AND CONFIGURING APACHE

Rahul Panwar CSI-ADM

[citation needed] Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. is web server software notable for playing a key role in the initial growth of the World Wide Web. Linux. FreeBSD. The application is available for a wide variety of operating systems. Mac OS X.INTRODUCTION TO APACHE The Apache HTTP Server. including Unix. Microsoft Windows. TPF. commonly referred to as Apache. The majority of web servers using Apache run a Unix-like operating system. Apache is characterized as open source software . OS/2. and eComStation. Released under the Apache License. Novell NetWare.[2] In 2009 it became the first web server software to surpass the 100 million web site milestone. GNU. Solaris.[3] Apache was the first viable alternative to the Netscape Communications Corporation web server (currently known as Sun Java System Web Server). and has since evolved to rival other Unix-based web servers in terms of functionality and performance.

During the installation. The best place to get Apache is from the Apache HTTP Server download site. we will be asked for .INSTALLING AND CONFIGURING APACHE 1. The Apache Group does not guarantee that this software will work as documented.Downloading Apache The first step in installing apache is to download the latest stable release. Windows support is entirely experimental. the code is not as stable as it is for Unix. or even at all. 2. we should open it as usual and the setup wizard will open and install the server for us. After the file is downloaded. and is recommended only for experienced users. Binary releases are available as well. Download the sources appropriate to your system.Installing Apache Installing the Apache in windows is easier when compared to Linux. Since Apache has just started making Windows versions.

we have to decompress it.9. Compiling the Source With all the source code neatly placed in this directory (and it's subdirectories).tar.3.9 will be created. It is free and distributed with most Unix operating systems.* the directory to install Apache into * the start menu name * the installation type Typical installs everything except the source code. You will have to go to this directory to proceed to the next step and compile the source code.gz. A directory called apache_1. .3. Here we will be using the GNU cc (gcc is the shortform) compiler to compile the source. you will have to compile it to make it work. Minimum doesn't install the manuals or source code. and Custom allows you to 'customize' what is installed. Now to the Unix version. Simply type tar -zxf apache_1. Since we downloaded a "tarball" distribution.

9/src/Configuration.org/software/gcc/gcc. and tweak many other options.9 directory. Two more command line commands to execute. Type make to compile the server.html. You can add/remove modules from the list.f it is not on your computer. and . Normally though. from the prompt type . download and install it from http://www. Anyway.fsf.3. you must edit apache_1. once in the apache_1. you should just let it use the defaults. For more information on editing the Configuration file. check out the README./configure This will create a makefile with the default configuration.configure file included with the distribution.tmpl before running configure.3. To change the configuration. especially if this is your first time installing Apache.

There are obviously two methods for running it. Windows Since Apache is just another Windows application. Now that your Apache binaries have finally been installed. If you are not running Windows NT. This means it will automatically start everytime NT is booted up. one is for Windows and the other is for Unix.tmpl. you can hit the "Install Apache as Service (NT only)" option and Apache will be installed as a service on your computer. then the Apache Web Server program group. though this can be changed in Configuration. just select "Start Apache as console app". Using Apache After all of this work. The default is /usr/local/apache/. just go to the start menu. .make install to put it in the proper directories. we are now ready to start running Apache. we can proceed with learning how to use them. If you are running Apache on NT though.

it doesn't have to be. and. Lastly. for Apache. directory indexes. The configuration can be found in the apache_1. This file contains the configurations for the management of resources in the filesystem.conf. there is srm. etc. Firstly.9/conf/ directory. For example. you only really need three of them. server logs and server management. which contains directives and configurations relating to the operation of the server as a whole.conf. such as aliases.conf. This file contains information on access control in .Configuring Apache Though it is generally thought to be scary to edit a configuration file for anything.3. though there are a bunch of files available. access. there is httpd. Next on the list.

Another note.When you first install Apache though.conf-dist. for windows. the files are not named exactly like this.conf Or. This means it is the distribution copy of the file. . you must restart Apache before any changes to the configuration files take effect.conf-dist httpd. before we begin. This is because the files are loaded upon initiation. just use a command similar to this (from unix) cp httpd. they seem to be named name. Since we like to have backup copies of anything and everything. and rename it. just copy the file. so these changes will not be loaded otherwise.

Sign up to vote on this title
UsefulNot useful