Below are the Prerequisite for installing the Apache on Linux.
$ make
$ make install
Which installs apr on /usr/local/apr
$ make
$ make install
Note: Also Install "yum install pcre-devel" otherwise we might get error while installing apache like "util_pcre.c:49:18: error: pcre.h: No such file or directory"
a. ./configure --prefix=/usr/local/pcre
b. make
c. make install
Which installs apache on /usr/local/pcre
Directory: /u01/httpd-2.4.20
$ ./configure --prefix=/u01/Apache2.4.20 --enable-mods-shared=all --enable-so --enable-rewrite --enable-ssl --enable-proxy --with-ssl=/usr/local/ssl
$ make
$ make install
1. GCC Compiler
$ yum groupinstall "Development Tools" (this will also install GCC, apr and apr-util , but with legacy version,so install the latest apr in further steps)2. APR/APR-UTIL
Download the APR/APR-UTIL from the "https://apr.apache.org/" and run the below command as a root user.
APR
$ ./configure$ make
$ make install
Which installs apr on /usr/local/apr
APR-UTIL:
$ ./configure --with-apr=/usr/local/apr$ make
$ make install
3. PCRE (perl)
Download the PCRE from the "https://apr.apache.org/" and run the below command as a root user.Note: Also Install "yum install pcre-devel" otherwise we might get error while installing apache like "util_pcre.c:49:18: error: pcre.h: No such file or directory"
a. ./configure --prefix=/usr/local/pcre
b. make
c. make install
Which installs apache on /usr/local/pcre
Install Apache
Download Apache from the "https://httpd.apache.org/download.cgi" url and run the below comands on liux terminal.
$ ./configure --prefix=/u01/Apache2.4.20 --enable-mods-shared=all --enable-so --enable-rewrite --enable-ssl --enable-proxy --with-ssl=/usr/local/ssl
$ make
$ make install
No comments:
Post a Comment