Outils pour utilisateurs

Outils du site


apache:compiler_apache_2_et_openssl_en_statique

Compiler Apache 2 et OpenSSL en statique

  • Télécharger les paquets suivants:
    • openssl-1.0.2e.tar.gz
    • httpd-2.2.31.tar.gz
    • libxml2-2.9.3.tar.gz
    • mod_fastcgi-2.4.6.tar.gz
  • Créer le script suivant:
install-apache-2.2.31.sh
#!/bin/bash 
 
rm -rf openssl-1.0.2e
tar -xzf openssl-1.0.2e.tar.gz  
cd openssl-1.0.2e
make clean
./config\
 --prefix=/opt/openssl-1.0.2e\
 --openssldir=/opt/openssl-1.0.2e
make
make install
cd ..
 
rm -rf httpd-2.2.31
tar -xzf httpd-2.2.31.tar.gz
cd httpd-2.2.31
make clean
export LIBS=-ldl
./configure\
 --prefix=/opt/httpd\
 --with-included-apr\
 --enable-ssl\
 --with-ssl=/opt/openssl-1.0.2e\
 --enable-ssl-staticlib-deps\
 --enable-mods-static=ssl\
 --with-program-name=apache2\
 --enable-mods-shared=all
make 
make install
cd ..
 
rm -rf mod_fastcgi-2.4.6
tar -xzf mod_fastcgi-2.4.6.tar.gz
cd mod_fastcgi-2.4.6
cat Makefile.AP2 |sed 's/\/usr\/local\/apache2/\/opt\/httpd/g' > Makefile
make
make install
cd ..
 
rm -rf libxml2-2.9.3 
tar -xzf libxml2-2.9.3.tar.gz
cd libxml2-2.9.3
./configure\
 --prefix=/opt/libxml2-2.9   
make
make install
cd ..
 
rm -rf modsecurity-2.9.0
tar -xzf modsecurity-2.9.0.tar.gz
cd modsecurity-2.9.0
./configure\
 --prefix=/opt/modsecurity-2.9.0\
 --with-libxml=/opt/libxml2-2.9\
 --with-apxs=/opt/httpd/bin/apxs\
 --with-apr=/opt/httpd/bin/apr-1-config
make
make install
cd ..
apache/compiler_apache_2_et_openssl_en_statique.txt · Dernière modification: 08/01/2016 par laurent