Apache 2.4.9 Installation Steps for
Linux Platform
Apache HTTP server 2.4.9
or Apache Web server is a new version of web-server developed by Apache
Software Foundation and the Apache HTTP server project. This release Apache
HTTP Server version 2.4.9 is currently stable version Apache HTTP server that
represents fifteen years of research and development of Apache Foundation.
This httpd version
contains new features like MPMs, mod_lua, better authentication &
authorization, Fast CGI Proxy, improved OCSP support and small caching API.
Pre-Requisites for Apache 2.4.9
Version
- Operation System
- User access on the Linux box by which you want
to install
- Default port 80 should be open on the box to
perform the installation
- Check the sufficient memory space under the
installation directory
- Browser to check the server availability after
installation
Main thing Apache
HTTP Server installer files according to your OS :-
Stable Release -
with Latest Version
File Size :- 4.8 MB
Space Required :-
100 MB Approx.
By above link user
can get the any installer file like .tar, .gz and binaries files for
installation.
Apache HTTPD Server Dependencies & Requirements
-- Required
- Apr-1.5.1
- Apr-Utill-1.5.3
- Pcre-8.35
-- Recommended
· OpenSSL-1.0.1h
Above packages are
bundled and come with Apache installer file. Once user unzip or explodes the
installer file downloaded, will get the all the packages and
dependencies.
APR and APR-utill
Either you may
install APR and APR-Utill on your system already or you may use both with
Apache installation by downloading latest version from apache apr website.
User needs to unpack the both folder into ./srclib/apr and ./srclib/apr-util (
here user has to make sure both directories names do not contain version
numbers : Example :- ./srclib/apr & ./srclib/apr-utill ). Some
platforms may require -dev package to be installed for httpd server.
PCRE ( Perl -Compatible Regular Expression Library )
This library files
are required for Apache HTTP server 2.4.9. it is not bundled with https, user
may download it from http://www.pcre.org. First, User has to build
pcre library for the system that will create pcre-config scripts installed by
the PCRE build. To configuring Apache , user needs to add --with-pcre
parameter.
Configure PCRE
$
cd pcre-8.35
$
./configure --prefix=PREFIX
PREFIX
:- Here prefix represents home directory of pcre library.
$ make
$ make install
above command will
generate the pcre-config scripts under the pcre home directory. this
pcre-config will be used during Apache installation.
Apache Installation Steps
Extraction
$ gzip -d httpd-xx.tar.gz
$
tar xvf httpd-xx.tar
$ cd httpd-NN
Enter into the
03-httpd directory.
Configure Apache
Copy the APR,
APR-Utill and pcre directory into the ./srclib of Apache installation.
$ ./configure
--prefix=PREFIX --with-included-apr --with-included-pcre=<PATH TO
PCRE-CONFIG generated at above step>
PREFIX = it is home
directory of installation or by default location system will take
/usr/local/apache2
Note :- Here user
can add multiple modes for Apache Web server according to requirement.
Compile & install Apache
$ make
Above command will
compile the Apache package and file system.
$ make install
Upon successfully
completion of above command. you can access your Apache HTTP server at port 80.
To test it just hit the URL :- http://<hostname>:80
But you need to
start the https service to access this. Please follow the below steps.
Customization
$ vi
PREFIX/conf/httpd.conf
here user can
change the server parameters like hostname, port and modules for the Apache.
$ cd PREFIX/bin
$ ./apachectl -k
start ( To start httpd server)
$ ./apachectl -k
stop ( To stop httpd server)
Other methods
$ /etc/init.d/httpd
-start
$ /etc/init.d/httpd
-stop
sometimes if service is registered with name "apache" then
$ /etc/intit.d/apache -start
$ /etc/init.d/apache -stop
using service
$ httpd stop
$ service httpd start
Verify httpd process on linux
$ ps -aef | grep
httpd
Above command will
show the running process information.
_____________________________________________________________________________