{"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
\napt-get source apache2\r\napt-get build-dep apache2<\/pre>\n<\/blockquote>\n- Apply the patch to the source:<\/li>\n
\ncd apache2-2.2.9\/\r\npatch -p1 < patchfile<\/em><\/pre>\n<\/blockquote>\n- Build the debian package:<\/li>\n
\ndpkg-buildpackage -uc -us -b<\/pre>\n<\/blockquote>\n- List the currently installed apache2 packages:<\/li>\n
\ndpkg -l | egrep '^i+ +apache2'<\/pre>\n<\/blockquote>\n- Install the appropriate newly built packages (all the packages listed in the previous step) and restart apache:<\/li>\n
\ncd ..\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>\nSimples!<\/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}]}}