{"id":18,"date":"2009-06-07T23:56:17","date_gmt":"2009-06-07T22:56:17","guid":{"rendered":"https:\/\/base6.com\/?p=18"},"modified":"2009-06-15T20:17:50","modified_gmt":"2009-06-15T19:17:50","slug":"patching-apache-on-debian","status":"publish","type":"post","link":"https:\/\/base6.com\/2009\/06\/07\/patching-apache-on-debian\/","title":{"rendered":"Patching Apache on Debian"},"content":{"rendered":"

Steps for applying a patch to the Apache source tree and building a Debian package of the patched Apache in order to install via apt as normal.
\n<\/p>\n

    \n
  1. Download the source package and build dependencies:<\/li>\n
    \n
    apt-get source apache2\r\napt-get build-dep apache2<\/pre>\n<\/blockquote>\n
  2. Apply the patch to the source:<\/li>\n
    \n
    cd apache2-2.2.9\/\r\npatch -p1 < patchfile<\/em><\/pre>\n<\/blockquote>\n
  3. Build the debian package:<\/li>\n
    \n
    dpkg-buildpackage -uc -us -b<\/pre>\n<\/blockquote>\n
  4. List the currently installed apache2 packages:<\/li>\n
    \n
    dpkg -l | egrep '^i+ +apache2'<\/pre>\n<\/blockquote>\n
  5. Install the appropriate newly built packages (all the packages listed in the previous step) and restart apache:<\/li>\n
    \n
    cd ..\r\ndpkg -i apache2_2.2.9-10+lenny2_all.deb\r\ndpkg -i apache2-mpm-prefork_2.2.9-10+lenny2_amd64.deb\r\ndpkg -i apache2-prefork-dev_2.2.9-10+lenny2_amd64.deb\r\ndpkg -i apache2-utils_2.2.9-10+lenny2_amd64.deb\r\ndpkg -i apache2.2-common_2.2.9-10+lenny2_amd64.deb\r\n\r\napache2ctl restart<\/pre>\n<\/blockquote>\n<\/ol>\n

    Simples!<\/p>\n","protected":false},"excerpt":{"rendered":"

    Steps for applying a patch to the Apache source tree and building a Debian package of the patched Apache in order to install via apt as normal.<\/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":[5,10,60280,14,9,8,15],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/base6.com\/wp-json\/wp\/v2\/posts\/18"}],"collection":[{"href":"https:\/\/base6.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/base6.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/base6.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/base6.com\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":7,"href":"https:\/\/base6.com\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/base6.com\/wp-json\/wp\/v2\/posts\/18\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/base6.com\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/base6.com\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/base6.com\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}