Posts

Showing posts from October, 2024

Building Apache httpd from source

In case you don't have sudo access and want to install httpd, you can do it by compiling it from source. You would need to first resolve the dependencies  Apache httpd depends on 1. Apache APR 2. Perl PCRE Download source for 1. httpd - https://httpd.apache.org 2. apr and apr-util - https://apr.apache.org 3. pcre - https://www.pcre.org apr-utils depends on libexpat download libexpat source - https://libexpat.github.io/ Steps: Note: I am installing httpd in a temp directory, you may want to install it in a different directory 1. Extract apr gunzip apr-1.7.5.tar.gz ls apr-1.7.5 tar xvf apr-1.7.5.tar 2. Extract apr-util gunzip apr-util-1.6.3.tar.gz | tar zxvf tar xvf apr-util-1.6.3.tar ls apr-util-1.6.3 3. Extract and build libexpat gunzip expat-2.6.3.tar.gz tar xvf expat-2.6.3.tar cd expat-2.6.3 ./configure --prefix=/opt/portal/tmp/expat make make install 4. Extract and build pcre gunzip pcre2-10.44.tar.gz tar xvf pcre2-10.44.tar cd pcre2-10.44 ./configure --prefix=/opt/portal/tmp/p...