Apache Server (HTTP) is a free open source web server for Unix-like systems, windows and other operating systems. _______________________________________________________________________________________________________________________
Our Server Specification:-
Os : Ubuntu 18.04 LTS bionic beaver
Hostname:- www.example.com
IP Address of Server:-
_______________________________________________________________________________________________________________________
lsb_release -a ; getconf LONG_BIT
apt-get install -y build-essential dpkg-dev net-tools git nano gedit cmake dpkg-dev libc6-dev libssl-dev debhelper fakeroot libxml2-dev libxslt1-dev zlib1g-dev libpcre3-dev libbz2-dev libapr1-dev libaprutil1-dev libpcre3-dev libbz2-dev zlib1g-dev
cd /usr/local/src && wget https://zlib.net/fossils/zlib-1.2.11.tar.gz
tar xvfz zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix=/usr/local
make && make install
cd /usr/local/src && wget https://www.apache.org/dist/httpd/httpd-2.4.29.tar.gz
tar -xvf httpd-2.4.29.tar.gz
cd httpd-2.4.29
./configure --help
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --enable-ssl --enable-headers --enable-rewrite --enable-so --enable-cgi --enable-speling --enable-proxy-ftp --enable-headers --with-mpm=prefork
make && make install
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl stop
cp /usr/local/apache2/bin/apachectl /etc/init.d/apachectl
chmod +x /etc/init.d/apachectl
/usr/sbin/update-rc.d -f apachectl defaults
adduser --system apache
gedit /usr/local/apache2/conf/httpd.conf &>/dev/null
User apache
Group nogroup
/usr/local/apache2/bin/apachectl start
ps -aux | grep httpd
http://localhost/
or
http://127.0.0.1/
_______________________________________________________________________________________________________________________
Friday, January 28, 2022
How To Compile Apache 2.4 From Source On Ubuntu 18.04 LTS
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment