{"id":103,"date":"2013-04-24T15:13:53","date_gmt":"2013-04-24T13:13:53","guid":{"rendered":"http:\/\/www.marc-cesarine.fr\/?p=103"},"modified":"2013-04-24T15:13:53","modified_gmt":"2013-04-24T13:13:53","slug":"compilation-apache2-4openssl-sous-debian","status":"publish","type":"post","link":"https:\/\/www.marc-cesarine.fr\/?p=103","title":{"rendered":"Compilation Apache2.4 + OpenSSL sous Debian"},"content":{"rendered":"<p>Recup des sources + d\u00e9pendances<\/p>\n<pre>apt-get install build-essential libtool autoconf\nwget http:\/\/wwwftp.ciril.fr\/pub\/apache\/\/httpd\/httpd-2.4.6.tar.gz\nwget http:\/\/wwwftp.ciril.fr\/pub\/apache\/apr\/apr-iconv-1.2.1.tar.gz\nwget http:\/\/wwwftp.ciril.fr\/pub\/apache\/apr\/apr-1.4.8.tar.gz\nwget http:\/\/wwwftp.ciril.fr\/pub\/apache\/apr\/apr-util-1.5.2.tar.gz\nwget http:\/\/prdownloads.sourceforge.net\/libpng\/zlib-1.2.8.tar.gz\nwget http:\/\/downloads.sourceforge.net\/project\/pcre\/pcre\/8.33\/pcre-8.33.tar.gz\nwget http:\/\/www.openssl.org\/source\/openssl-1.0.1e.tar.gz\n<\/pre>\n<p>D\u00e9compression des sources + d\u00e9pendances<\/p>\n<pre>for i in `ls *.tar*`; do tar -xvf $i; done\nmv zlib-1.2.8 httpd-2.4.6\/srclib\/zlib\n<\/pre>\n<p>Compilation openSSL<\/p>\n<pre>apt-get install zlib1g-dev\ncd openssl-*\n.\/config --prefix=\/usr zlib-dynamic --openssldir=\/etc\/ssl shared\nmake depend\nmake\nmake test\nmake install # Bug pod. Correction https:\/\/bugs.archlinux.org\/task\/35868?getfile=10648\n<\/pre>\n<p>Compilation pcre<\/p>\n<pre>apt-get install libbz2-dev libreadline-dev\ncd pcre-8.33\n.\/configure --prefix=\/usr --docdir=\/usr\/share\/doc\/pcre-8.33 --enable-utf --enable-unicode-properties --enable-pcre16 --enable-pcre32 --enable-pcregrep-libz --enable-pcregrep-libbz2 --enable-pcretest-libreadline --disable-static\nmake\nmake check\nmake install<\/pre>\n<p>Compilation apr<\/p>\n<pre>.\/configure\nmake\nmake install\n<\/pre>\n<p>Compilation apr-util<\/p>\n<pre>apt-get install libssl-dev libldap2-dev\n.\/configure --with-apr=..\/apr-1.4.8\/ --with-ldap --with-openssl --with-mysql --with-crypto\nmake\nmake install<\/pre>\n<p>Compilation apr-iconv<\/p>\n<pre>.\/configure --with-apr=..\/apr-1.4.8\/\nmake\nmake install<\/pre>\n<p>Compilation apache2.4<\/p>\n<pre>\ncd httpd-2.4.6\n.\/buildconf\n.\/configure --prefix=\/opt\/apache24 --enable-mods-shared=\"all ssl ldap cache proxy authn_alias file_cache authnz_ldap charset_lite dav_lock disk_cache\" --enable-mpms-shared=all --enable-nonportable-atomics=yes --with-apr-util=..\/apr-util-1.5.2 --with-apr=..\/apr-1.4.8\nmake\nmake install\n<\/pre>\n<p>Un peu de d\u00e9tails sur les param\u00e8tres de compil apache utilis\u00e9s :<\/p>\n<table>\n<tbody>\n<tr>\n<th>Param\u00e8tre<\/th>\n<th>Explication<\/th>\n<\/tr>\n<tr>\n<td>prefix=\/opt\/apache2<\/td>\n<td>On donne le chemin d&rsquo;acc\u00e8s du r\u00e9pertoire contenant apache une fois install\u00e9<\/td>\n<\/tr>\n<tr>\n<td>&#8211;enable-mods-shared=\u00a0\u00bball ssl ldap cache proxy authn_alias file_cache authnz_ldap charset_lite dav_lock disk_cache\u00a0\u00bb<\/td>\n<td>Tous les modules sont compil\u00e9s. Ils le seront sous forme de modules charg\u00e9s dynamiquement (fichiers .so)<\/td>\n<\/tr>\n<tr>\n<td>enable-mpms-shared=all<\/td>\n<td>Compile tous les mpms et en mode librairie partag\u00e9e (fichier .so)<\/td>\n<\/tr>\n<tr>\n<td>enable-nonportable-atomics=yes<\/td>\n<td>Augmentation de perfs si pas 386 ou pre-ULTRASPARC. <a href=\"http:\/\/httpd.apache.org\/docs\/2.4\/fr\/mod\/event.html#requirements\" target=\"_blank\">Lien<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Recup des sources + d\u00e9pendances apt-get install build-essential libtool autoconf wget http:\/\/wwwftp.ciril.fr\/pub\/apache\/\/httpd\/httpd-2.4.6.tar.gz wget http:\/\/wwwftp.ciril.fr\/pub\/apache\/apr\/apr-iconv-1.2.1.tar.gz wget http:\/\/wwwftp.ciril.fr\/pub\/apache\/apr\/apr-1.4.8.tar.gz wget http:\/\/wwwftp.ciril.fr\/pub\/apache\/apr\/apr-util-1.5.2.tar.gz wget http:\/\/prdownloads.sourceforge.net\/libpng\/zlib-1.2.8.tar.gz wget http:\/\/downloads.sourceforge.net\/project\/pcre\/pcre\/8.33\/pcre-8.33.tar.gz wget http:\/\/www.openssl.org\/source\/openssl-1.0.1e.tar.gz D\u00e9compression des sources + d\u00e9pendances for i in `ls *.tar*`; do tar -xvf $i; done mv zlib-1.2.8 httpd-2.4.6\/srclib\/zlib Compilation openSSL apt-get install zlib1g-dev cd openssl-* .\/config &#8211;prefix=\/usr zlib-dynamic &#8211;openssldir=\/etc\/ssl shared make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-systeme"],"_links":{"self":[{"href":"https:\/\/www.marc-cesarine.fr\/index.php?rest_route=\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marc-cesarine.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marc-cesarine.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marc-cesarine.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marc-cesarine.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=103"}],"version-history":[{"count":0,"href":"https:\/\/www.marc-cesarine.fr\/index.php?rest_route=\/wp\/v2\/posts\/103\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.marc-cesarine.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marc-cesarine.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marc-cesarine.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}