Tuesday, October 23, 2018

How to install Apache from source

Download and copy Apache source to local Linux machine

cd /opt/software/httpd-2.4.33


./configure --prefix=/usr/local/apache LD_LIBRARY_PATH=/usr/local/ssl/lib/ LIBS=-L/usr/local/ssl/lib --with-included-apr --enable-ssl --enable-so --enable-http --enable-info --enable-cgi --enable-vhost-alias --enable-rewrite --with-mpm=prefork --enable-mods-shared --enable-deflate --enable-headers --enable-security --enable-reqtimeout --enable-so

make

make install

cp /usr/local/apache/bin/apachectl /etc/init.d/web.system chmod 777 /etc/init.d/web.system

change http.conf according to your settings.

Go to browser and open http://x.x.x.x/index.html

No comments:

Post a Comment