Embed
Email

Apache_Server_Notes

Document Sample

Shared by: linzhengnd
Categories
Tags
Stats
views:
0
posted:
12/4/2011
language:
English
pages:
2
Apache Server Notes

By Timothy J Whitehouse

Last updated 05/24/2005

-To download the Apache Server, go to www.apache.com

-You can choose to download the binary version, an RPM, or the actual source code.

-The binary is the easiest.

-A binary is where someone else has compiled the source code for you

-An RPM (Red Hat Package Manager) allows you to install like a binary.

-The RPM’s work well with other packages

-The RPM’s also have some settings for ease of use

-The source code allows the most flexibility, but it is the hardest to set up

-To check if you have Apache already installed with your version of Red Hat Linux, at

the command prompt type:

rpm –qa | grep apache

-If you find something that says Apache 1.3-xxxxx then it is installed.



Installations:

Binary Installation:

-You must find the binary that fits your operating system. Ex: Red Hat 9.0

-Browse to:

http://www.apache.org/dist/httpd/binaries

-Make sure you are in the directory with the downloaded binary

-gunzip < httpd-2.0.xxxxx.tar.gz | tar xvf – to unzip

-if tar does what gunzip does also, then you only need to use tar:

tar xvzf httpd-2.0.xxxxxxx.tar.gz

-change directory: cd httpd-2.0.x

-become root: su

-run install script “./install.bindist.sh”

-That should install apache



RPMS Installation:

-If it is not installed, you can load it from the cd in the following folder:

RedHat/RPMS

Or download it from this web site:

ftp:ftp.redhat.com/pub/redhat/redhat-7.3-en/os/i386/RedHat/RPMS

-Then become root

-Navigate to the directory where you saved the downloaded .rpm file

-type:

rpm –ivh apache-1.3.xxxxx.src.rpm

-You should now see a progress bar. If there are no errors, you are done.



Build From Source Installation:



-browse to: http://www.apache.org/dist/httpd

-download the gzip’d version of apache

-uncompress using gunzip and tar:

gunzip < httpd-2.0.xxxx | tar xvf –

-change to directory:

cd httpd-2.0.x

-./configure

-You will get a couple of lines checking for things, configuring Apache

-If no errors, apache is configured

-make

-lots of output. Once down, you will see make[1]:Leaving directory ……

-make install

-Apache is now installed from source



Starting the Apache server

-/usr/local/apache/bin/apachectl start

-if an RPM was used:

-su

/sbin/service/ httpd start

-Point to your new web server

-http://localhost/

-If it worked, you will see default home page

Customize

-Login as root

-cd /

-find –name httpd.conf

-move to that directory

-3 files:

-httpd.conf – settings for overall configuration of apache server

-access.conf – security settings for apache server

-srm.conf – MIME definitions and default document names for files on server



-If you make changes to any of those files, you must restart apache for the changes to

take place

-/usr/local/apache/bin/apachectl start

-If an RPM was used:

/sbin/service httpd start



Other docs by linzhengnd
Comment_organiser_une_manifestation_sportive
Views: 2  |  Downloads: 0
Report
Views: 0  |  Downloads: 0
professionalismprogramfinaldraft
Views: 0  |  Downloads: 0
Testing _ Certification
Views: 0  |  Downloads: 0
Community Art Murals
Views: 1  |  Downloads: 0
p1-9
Views: 3  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!