(partially taken from this manual: http://blog.hououji.info/archives/190)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | yum install gcc zlib-devel yum install mod_perl-devel wget http://www.openssl.org/source/openssl-1.0.0g.tar.gz gunzip < openssl-1.0.0g.tar.gz | tar xvf - cd openssl-1.0.0g ./config --prefix=/usr/local2 --openssldir=/usr/local2/openssl enable-tlsext shared make make install cd .. wget http://ftp.cuhk.edu.hk/pub/packages/apache.org//httpd/httpd-2.2.31.tar.gz gunzip < httpd-2.2.31.tar.gz | tar xvf - cd httpd-2.2.31 LDFLAGS=-L/usr/local2/lib CPPFLAGS=-I/usr/local2/include/ ./configure -prefix=/usr/local2/apache-2.2.23 -with-included-apr -with-mpm=worker -enable-mime-magic -enable-so -enable-vhost-alias -enable-ssl -enable-rewrite -with-java-home=/usr/java/jdk1.6.0_14 -enable-unique-id -enable-deflate -enable-proxy -enable-proxy-ajp -enable-expires -disable-status -disable-cgid -disable-userdir -with-ssl=/usr/local2/ -enable-mods-shared="isapi file_cache cache disk_cache mem_cache ext_filter expires headers usertrack unique_id status info cgi cgid speling ssl" make make install cd /usr/lib/httpd/modules ln -s /usr/local2/apache-2.2.31/modules/mod_ssl.so /usr/lib/httpd/modules ln -s /usr/local2/lib/libssl.so.1.0.0 /lib/libssl.so.1.0.0 ln -s /usr/local2/lib/libcrypto.so.1.0.0 /lib/libcrypto.so.1.0.0 |
Post a Comment
You must be logged in to post a comment.