Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Category Archive Apache

Install Apache 2.4.4 in CentOS 6.4

May 28, 2013 Comments Off on Install Apache 2.4.4 in CentOS 6.4 By MANOJ AGARWAL


Install Apache 2.4.4 in CentOS 6.4

Apache HTTP server is an open source and most popular web server for Linux distributions as well as for Windows.
The website is: http://httpd.apache.org/

CentOS 6.4 comes with Apache version 2.2.15-28.  To install Apache 2.2.15 in CentOS 6.4, we use yum as follows:

# yum install httpd

But, if we wish to install the latest version of Apache HTTP server, that is v2.4.4 in CentOS 6.4, we need to run the following commands:

# cd /usr/local/src
# yum -y install wget

# wget http://pkgs.fedoraproject.org/repo/pkgs/apr/apr-1.4.6.tar.bz2/ffee70a111fd07372982b0550bbb14b7/apr-1.4.6.tar.bz2

# wget http://pkgs.fedoraproject.org/repo/pkgs/apr-util/apr-util-1.5.2.tar.bz2/89c1348aa79e898d7c34a6206311c9c2/apr-util-1.5.2.tar.bz2

# wget http://pkgs.fedoraproject.org/repo/pkgs/httpd/httpd-2.4.4.tar.bz2/0e712ee2119cd798c8ae39d5f11a9206/httpd-2.4.4.tar.bz2

# wget http://dl.fedoraproject.org/pub/fedora/linux/releases/18/Fedora/source/SRPMS/d/distcache-1.4.5-23.src.rpm

# yum -y install autoconf libtool doxygen expat expat-devel libuuid-devel db4-devel mysql-devel unixODBC-devel postgresql-devel sqlite-devel pcre pcre-devel lua-devel libxml2-devel openldap-devel nss-devel

# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

# rpm -ivh epel-release-6-8.noarch.rpm
# yum -y install freetds freetds-devel
# yum -y install glib
# cd /usr/local/src
# yum -y install rpm-build

# rpmbuild -tb /usr/local/src/apr-1.4.6.tar.bz2
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-1.4.6-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-devel-1.4.6-1.i686.rpm

# rpmbuild -tb /usr/local/src/apr-util-1.5.2.tar.bz2
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-devel-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-dbm-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-debuginfo-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-freetds-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-ldap-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-mysql-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-nss-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-odbc-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-openssl-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-pgsql-1.5.2-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/apr-util-sqlite-1.5.2-1.i686.rpm

# rpmbuild –rebuild distcache-1.4.5-23.src.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/distcache-1.4.5-23.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/distcache-devel-1.4.5-23.i686.rpm

# rpmbuild -tb /usr/local/src/httpd-2.4.4.tar.bz2

# rpm -ivh –aid /root/rpmbuild/RPMS/i686/httpd-2.4.4-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/httpd-debuginfo-2.4.4-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/httpd-manual-2.4.4-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/httpd-tools-2.4.4-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/mod_authnz_ldap-2.4.4-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/mod_lua-2.4.4-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/mod_proxy_html-2.4.4-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/mod_socache_dc-2.4.4-1.i686.rpm
# rpm -ivh –aid /root/rpmbuild/RPMS/i686/mod_ssl-2.4.4-1.i686.rpm

# service httpd restart

# service httpd status

# apachectl -v

# chkconfig httpd on


,

Install apache 2.2.15 in CentOS 6.4

May 24, 2013 Comments Off on Install apache 2.2.15 in CentOS 6.4 By MANOJ AGARWAL

Install apache 2.2.15 in CentOS 6.4

Apache HTTP server is an open source and most popular web server for Linux distributions as well as for Windows. The website is: http://httpd.apache.org/

CentOS 6.4 comes with Apache version 2.2.15-28.  To install Apache 2.2.15 in CentOS 6.4, we need to do the following:

If yum repository is configured correctly in CentOS, we can use yum command to install httpd, as shown in Figure-1

                                                          [Figure-1]

yum lists all dependencies required to install httpd and lists them as shown in Figure-2.  Press ‘y’ to confirm installing ‘httpd’, along with all its required dependecies.

                                                         [Figure-2]

Once httpd is installed, we get the message that httpd installation along with all of its dependencies is complete as shown in Figure-3.

                                                         [Figure-3]

Restart httpd service using the command, ‘service httpd restart’.  If httpd is started successfully, we see [ OK ] message as shown in Figure-4.

                                                        [Figure-4]

To configure apache settings, we need to make changes in apache configuration file, that is located in ‘/etc/httpd/conf’ directory by the name ‘httpd.conf’ as shown in Figure-5.

                                                        [Figure-5]

Logs from apache are stored in the location ‘/var/log/httpd’.  Two basic log files are frequently used to analyze the activity of Web-server, these are ‘access_log’ and ‘error_log’.  To view these files, use vi editor/tail command/cat command etc. as shown in Figure-6 and 7.


                                                       [Figure-6]

                                                       [Figure-7]

To start apache server at start-up, use the following command:
chkconfig httpd on

To test if apache is running and configured correctly, type this url: ‘http://localhost’ in the browser, and see that apache test page is displayed.

 

,

x Close

Like Us On Facebook

You cannot copy content of this page.