How to Install Apache 2.4.2 from Source on CentOS 6.3 with SSL
yum install gcc
yum install openssl-devel
yum install apr-devel
yum install apr-util-devel
yum install libtool
yum install gcc-c++
# APR
# http://mirrors.axint.net/apache//apr/apr-1.4.6.tar.gz
tar -xvzf apr-1.4.6.tar.gz
cd apr-1.4.6/
./configure
make
make install
cd ..
# APR Utils
# http://mirrors.axint.net/apache//apr/apr-util-1.4.1.tar.gz
tar -xvzf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure –with-apr=/usr/local/apr
make
make install
cd ..
# pcre-8.20
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.20.tar.gz
tar zxvf pcre-8.20.tar.gz
cd pcre-8.20/
./configure
make
make install
# Apache
tar -zxvf apr-1.4.6.tar.gz
tar -zxvf apr-util-1.4.1.tar.gz
mv apr-1.4.6 httpd-2.4.2/srclib/apr
mv apr-util-1.4.1 httpd-2.4.2/srclib/apr-util
tar -xvzf httpd-2.4.2.tar.gz
cd httpd-2.4.2
./configure –prefix=/usr/local/apache2.4 –enable-ssl –enable-cgi –enable-vhost-alias –enable-rewrite –enable-proxy –enable-so –enable-cache –enable-disk-cache –enable-mem-cache –enable-file-cache –enable-deflate –enable-expires –enable-headers –enable-usertrack –enable-rewrite –with-included-apr –with-included-apr-util
make
make install
httpd-2.2.22
./configure –prefix=/usr/local/apache2.22 –enable-ssl –enable-cgi –enable-vhost-alias –enable-rewrite –enable-so –enable-proxy –enable-so –enable-cache –enable-disk-cache –enable-mem-cache –enable-file-cache –enable-deflate –enable-expires –enable-headers –enable-usertrack –enable-rewrite –with-included-apr –with-included-apr-util
LoadModule slotmem_module modules/mod_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so
cd ..
[root@HVWMOWB01 httpd-2.4.2]# /usr/local/apache2/bin/httpd -k start
[root@HVWMOWB01 httpd-2.4.2]# ps -ef|grep http
root 29757 1 0 15:48 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 29758 29757 0 15:48 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 29760 29757 0 15:48 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 29762 29757 0 15:48 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
root 29844 9441 0 15:48 pts/4 00:00:00 grep http
Openssl setup on the Server
Include conf/extra/httpd-ssl.conf
openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
cp server.key server.key.org
openssl rsa -in server.key -out servernopass.key
How to Compile Apache & Php in linux
Compiling PHP and Apache from source
To compile Apache
To compile PHP
?>
DSO
Recent Comments