httpd-2.4.6 / apache-2.4.6 + openssl + apr-1.4.8 + apr-iconv-0.9.7 + apr-util-1.5.2 compilados

Autores: Ricardo Brito e Leonardo Dourado;


Compilação para debian-like

  1. Arquivos Fontes

    Os arquivos fontes do apr, apr-iconv e apr-util, devem ser disponibilizados em srclib/, localizado dentro da estrutura de compilação do apache.

  2. openssl

    wget ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/openssl-1.0.1e.tar.gz

    tar xvzf openssl-1.0.1e.tar.gz -C /usr/src/

    cd /usr/src/openssl-1.0.1e/

    ./config --prefix=/usr/local/openssl -fPIC

    make && make install

  3. apr

    wget http://ftp.unicamp.br/pub/apache//apr/apr-1.4.8.tar.gz

    tar xvzf apr-1.4.8.tar.gz -C /usr/src

    cd /usr/src/apr-1.4.8/

    ./configure --prefix=/usr/local/apr --enable-threads --enable-shared --enable-malloc-debug --enable-profile --enable-other-child

    make && make install

  4. apr-iconv

    wget http://ftp.unicamp.br/pub/apache//apr/apr-iconv-0.9.7.tar.gz

    tar xvzf apr-iconv-0.9.7.tar.gz -C /usr/src

    cd /usr/src/apr-iconv-0.9.7

    ./configure --prefix=/usr/local/apr-iconv --with-apr=/usr/local/apr/bin/apr-1-config

    make && make install






  5. apr-util

    wget http://ftp.unicamp.br/pub/apache//apr/apr-util-1.5.2.tar.gz

    tar xvzf apr-util-1.5.2.tar.gz -C /usr/src

    cd /usr/src/apr-util-1.5.2/

    ./configure --prefix=/usr/local/apr-util --with-openssl=/usr/local/openssl --with-apr=/usr/local/apr --with-ldap

    make && make install






  6. apache2 ou httpd

    wget http://ftp.unicamp.br/pub/apache//httpd/httpd-2.4.6.tar.gz

    tar xvzf httpd-2.4.6.tar.gz -C /usr/src/

    cd /usr/src/httpd-2.4.6/

    ./configure --prefix=/usr/local/httpd --with-ssl=/usr/local/openssl --with-apr-util=/usr/local/apr-util --with-apr=/usr/share/apr-1.0/build --enable-mods-shared='headers rewrite dav dav_svn vhost-alias pie file-cache cache disk-cache mem-cache deflate expires usertrack ssl cgi authn-file authz-owner authnz-ldap auth-digest allowmethods substitute ldap session authnz-ldap' --enable-vhost-alias --enable-pie --enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache --enable-deflate --enable-expires --enable-headers --enable-usertrack --enable-ssl --enable-cgi --enable-vhost-alias --enable-rewrite --enable-so --disable-authn-file --enable-authz-owner --enable-authnz-ldap --enable-auth-digest --enable-allowmethods --enable-substitute --enable-deflate --enable-http--enable-ldap --enable-session --enable-ssl--enable-ldap --enable-authnz-ldap --enable-mpms-shared=all --with-included-apr --with-ldap --enable-authnz-svn --enable-dav-fs

    make && make install




Compilação para redhat-like

  1. Arquivos Fontes

    Os arquivos fontes do apr, apr-iconv e apr-util, devem ser disponibilizados em srclib/, localizado dentro da estrutura de compilação do apache.

  2. openssl

    wget ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/openssl-1.0.1e.tar.gz

    tar xvzf openssl-1.0.1e.tar.gz -C /usr/src/

    cd /usr/src/openssl-1.0.1e/

    ./config --enable-layout=RedHat --prefix=/usr/local/openssl -fPIC

    make && make install

  3. apr

    wget http://ftp.unicamp.br/pub/apache//apr/apr-1.4.8.tar.gz

    tar xvzf apr-1.4.8.tar.gz -C /usr/src

    cd /usr/src/apr-1.4.8/

    ./configure --enable-layout=RedHat --prefix=/usr/local/apr --enable-threads --enable-shared --enable-malloc-debug --enable-profile --enable-other-child

    make && make install

  4. apr-iconv

    wget http://ftp.unicamp.br/pub/apache//apr/apr-iconv-0.9.7.tar.gz

    tar xvzf apr-iconv-0.9.7.tar.gz -C /usr/src

    cd /usr/src/apr-iconv-0.9.7

    ./configure --enable-layout=RedHat --prefix=/usr/local/apr-iconv --with-apr=/usr/local/apr/bin/apr-1-config

    make && make install






  5. apr-util

    wget http://ftp.unicamp.br/pub/apache//apr/apr-util-1.5.2.tar.gz

    tar xvzf apr-util-1.5.2.tar.gz -C /usr/src

    cd /usr/src/apr-util-1.5.2/

    ./configure --enable-layout=RedHat --prefix=/usr/local/apr-util --with-openssl=/usr/local/openssl --with-apr=/usr/local/apr --with-ldap

    make && make install






  6. apache2 ou httpd

    wget http://ftp.unicamp.br/pub/apache//httpd/httpd-2.4.6.tar.gz

    tar xvzf httpd-2.4.6.tar.gz -C /usr/src/

    cd /usr/src/httpd-2.4.6/

    ./configure --enable-layout=RedHat --prefix=/usr/local/httpd --with-ssl=/usr/local/openssl\
    --with-apr-util=/usr/local/apr-util --with-apr=/usr/share/apr-1.0/build\
    --enable-mods-shared='headers rewrite dav dav_svn vhost-alias pie file-cache cache disk-cache mem-cache deflate expires usertrack ssl cgi authn-file authz-owner authnz-ldap auth-digest allowmethods substitute ldap session authnz-ldap'\
    --enable-vhost-alias --enable-pie --enable-file-cache --enable-cache\
    --enable-disk-cache --enable-mem-cache --enable-deflate --enable-expires\
    --enable-headers --enable-usertrack --enable-ssl --enable-cgi\
    --enable-vhost-alias --enable-rewrite --enable-so --disable-authn-file\
    --enable-authz-owner --enable-authnz-ldap --enable-auth-digest\
    --enable-allowmethods --enable-substitute --enable-deflate --enable-http\
    --enable-ldap --enable-session --enable-ssl\
    --enable-ldap --enable-authnz-ldap\
    --enable-mpms-shared=all --with-included-apr --with-ldap

    make && make install




Carregamento de Bibliotecas

cat > /etc/ld.so.conf.d/apr.conf << eof
/usr/local/apr/lib
/usr/local/apr-util/lib
eof
cat > /etc/ld.so.conf.d/openssl.conf << eof
/usr/local/openssl/lib
eof
cat > /etc/ld.so.conf.d/httpd.conf << eof
/usr/local/httpd/lib
eof
Após criar os arquivos acima execute o comando ldconfig para carrega-las no sistema operacional.
ldconfig
Verifique se foram carregadas com o comando abaixo:
ldconfig -v

Comentários