May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Install Apache 2.4 on CentOS 6

Install Apache 2.4 on CentOS 6

I’m quite to the point. It is to install the Apache version 2.4.7.

yum -y install rpm-build

mkdir -p ~/rpmbuild/{SOURCES,SPECS,BUILD,RPMS,SRPMS}

cd ~/rpmbuild/SOURCES

wget http://ftp.cixug.es/apache//httpd/httpd-2.4.7.tar.bz2

In general, if we execute the following we will fail (but perfect and save yourself a lot of these steps …)

rpmbuild -tb httpd-2.4.7.tar.bz2

To correct this you have to install a lot of things

cd ~/rpmbuild/SOURCES

wget http://ftp.cixug.es/apache//apr/apr-1.5.0.tar.bz2

wget http://ftp.cixug.es/apache//apr/apr-util-1.5.3.tar.bz2

cd ~/rpmbuild/SOURCES

Now we have a theme is that things have to touch the kernel. As that is usually locked, we do the following

vi /etc/yum.conf

and here, in the file, we must comment or delete the appropriate line (we will discuss it)

#exclude=kernel*

yum install kernel-headers

yum -y install autoconf libtool doxygen

rpmbuild -tb apr-1.5.0.tar.bz2

The latter is likely to fail. If this happens, we will review the previously installed rpm

rpm -qa | grep -i apr

If there are previous packages, we will “update” but an “install”

# UPDATE:
rpm -U ~/rpmbuild/RPMS/x86_64/apr-1.5.0-1.x86_64.rpm ~/rpmbuild/RPMS/x86_64/apr-devel-1.5.0-1.x86_64.rpm

#INSTALL
rpm -ivh ~/rpmbuild/RPMS/x86_64/apr-1.5.0-1.x86_64.rpm ~/rpmbuild/RPMS/x86_64/apr-devel-1.5.0-1.x86_64.rpm

he 2.4 on CentOS 6

I’m quite to the point. It is to install the Apache version 2.4.7.

yum -y install rpm-build

mkdir -p ~ / rpmbuild / {SOURCES, SPECS, BUILD, RPMS, SRPMS}

cd ~ / rpmbuild / SOURCES

wget http://ftp.cixug.es/apache//httpd/httpd-2.4 .7.tar.bz2
In general, if we execute the following we will fail (but perfect and save yourself a lot of these steps …)

rpmbuild -tb httpd-2.4.7.tar.bz2
To correct this you have to install a lot of things

cd ~ / rpmbuild / SOURCES

wget http://ftp.cixug.es/apache//apr/apr-1.5.0.tar.bz2

wget http://ftp.cixug.es/apache//apr/apr-util -1.5.3.tar.bz2

cd ~ / rpmbuild / SOURCES
Now we have a theme is that things have to touch the kernel. As that is usually locked, we do the following

sudo vi /etc/yum.conf
and here, in the file, we must comment or delete the appropriate line (we will discuss it)

# Exclude = kernel *
From here we go forward

sudo yum install kernel-headers

yum -y install autoconf libtool doxygen

rpmbuild -tb apr-1.5.0.tar.bz2
The latter is likely to fail. If this happens, we will review the previously installed rpm

rpm -qa | grep -i apr
If there are previous packages, we will “update” but an “install”

# UPDATE:
rpm -U ~ / rpmbuild / RPMS / x86_64 / apr-1.5.0-1.x86_64.rpm ~ / rpmbuild / RPMS / x86_64 / apr-devel-1.5.0-1.x86_64.rpm

#install
rpm – ivh ~ / rpmbuild / RPMS / x86_64 / apr-1.5.0-1.x86_64.rpm ~ / rpmbuild / RPMS / x86_64 / apr-devel-1.5.0-1.x86_64.rpm
and continued:

yum -y install expat-devel-devel libuuid DB4-devel postgresql-devel mysql-devel freetds-devel unixODBC-devel openldap-devel nss-devel

cd ~ / rpmbuild / SOURCES

yum install sqlite-devel

rpm -ivh

/etc/yum.repos.d/

wget http://rpms.famillecollet.com/enterprise/remi.repo

yum install freetds freetds-devel

cd ~ / rpmbuild / SOURCES

rpmbuild -tb apr-util-1.5.3.tar. bz2

cd ~ / rpmbuild / SOURCES
Here we encounter the above situation … if there are packages reviewed

yum -y install expat-devel libuuid-devel db4-devel postgresql-devel mysql-devel freetds-devel unixODBC-devel openldap-devel nss-devel

cd ~/rpmbuild/SOURCES

yum install sqlite-devel

rpm -ivh ftp://fr2.rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

cd /etc/yum.repos.d/

wget http://rpms.famillecollet.com/enterprise/remi.repo

yum install freetds freetds-devel

cd ~/rpmbuild/SOURCES

rpmbuild -tb apr-util-1.5.3.tar.bz2

cd ~/rpmbuild/SOURCES

rpm -qa | grep -i apr-util

#UPDATE
rpm -U ~/rpmbuild/RPMS/x86_64/apr-util-1.5.3-1.x86_64.rpm ~/rpmbuild/RPMS/x86_64/apr-util-devel-1.5.3-1.x86_64.rpm ~/rpmbuild/RPMS/x86_64/apr-util-ldap-1.5.3-1.x86_64.rpm

#INSTALL
rpm -ivh ~/rpmbuild/RPMS/x86_64/apr-util-1.5.3-1.x86_64.rpm ~/rpmbuild/RPMS/x86_64/apr-util-devel-1.5.3-1.x86_64.rpm ~/rpmbuild/RPMS/x86_64/apr-util-ldap-1.5.3-1.x86_64.rpm

yum -y install expat-devel libuuid-devel db4-devel postgresql-devel mysql-devel freetds-devel unixODBC-devel openldap-devel nss-devel

cd ~/rpmbuild/SOURCES

yum install sqlite-devel

rpm -ivh ftp://fr2.rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

cd /etc/yum.repos.d/

wget http://rpms.famillecollet.com/enterprise/remi.repo

yum install freetds freetds-devel

cd ~/rpmbuild/SOURCES

rpmbuild -tb apr-util-1.5.3.tar.bz2

cd ~/rpmbuild/SOURCES

Here we have to check a few things … the first is if we had a previously installed Apache, and PHP … in this case, we should remove PHP (then reinstall).

cd ~/rpmbuild/SRPMS

wget http://www.gtlib.gatech.edu/pub/fedora.redhat/linux/releases/18/Fedora/source/SRPMS/d/distcache-1.4.5-23.src.rpm

rpmbuild –rebuild distcache-1.4.5-23.src.rpm

rpm -ivh ~/rpmbuild/RPMS/x86_64/distcache-1.4.5-23.x86_64.rpm ~/rpmbuild/RPMS/x86_64/distcache-devel-1.4.5-23.x86_64.rpm

cd ~/rpmbuild/SOURCES/

yum -y install pcre-devel lua-devel libxml2-devel

rpmbuild -tb httpd-2.4.7.tar.bz2

yum -y install mailcap httpd-mmn

mv /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.old

mv /etc/httpd/conf/httpd.conf.rpmnew /etc/httpd/conf/httpd.conf

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>