I want to get it upgraded to the latest stable version i.e. Can someone please tell me in detailed step-by-step manner how to do it?
This guide explains the configuration changes needed to update a standard virtual host setup, such as the one presented here, from Apache 2.2 to Apache 2.4.
You will have to make changes to your Apache 2.2 virtual hosts settings to make your websites work again with Apache 2.4.
Blindly upgrading from Apache 2.2 to 2.4 will break for these reasons: Ubuntu and Debian users will need to make both changes.
Make a backup of your data before upgrading your Apache software.
Upgrading can sometimes cause you to lose data, particularly if you had settings in an Apache configuration file that no longer apply in Apache 2.4.
Different distributions make Apache 2.4 the norm at different times.
The upgrade page is a good place to start when checking for incompatible modules.If you use Apache modules, this is especially likely.Even with the simplest Apache setup, you should back up your Apache settings, modules, and other data in case unforeseen issues arise.If your Apache configuration file is replaced during the upgrade, the location of your default virtual host will change from .You may have to disable the default virtual host again, if you don’t want it.
This article is not a comprehensive guide to updating from Apache 2.2 to 2.4.