Installing from source used to be very common and also quite simple.
You would download the source file, unpack it (with either zip or tar),
then issue the commands to the the directory you want to install it.
Crons:
Allows us to install required version.
Customizing Modules.
To configure and integrate with other source packages.
In this articles we gonna install the Apache through source file on
/usr/local/ directory.
Get the source file for the desired version from the official website of Apache, where you can find the latest version. click here to download latest package
You can either download or wget the file (tar.gz and tar.bz2 are available).
On
default apache the portable runtime libraries are installed by default,
when it comes to source installation you have to install it manually.
To know more about APR click here
You can also add modules according to your setup, the above command enables basic modules for apache.
Run make and make install once the configure is completed,
$ make
$ make install
The default conf file will be /usr/local/apache-2.4.37/conf/httpd.conf
Now start the customized installed apache installed on your /usr/local/ directory.
$ /usr/local/apache-2.4.37/bin/apachectl/ start
To test your configuration you can use the below command,
$ /usr/local/apache-2.4.37/bin/apachectl/ -t
Enter
the browser and enter the IP of the system or 127.0.0.1 if it is installed
in local system. You can view the test page as It works on your browser.
Now you have successfully installed and configured customized apache on your system.
Comments