October 14, 2019

Tips to Boost the Performance of Your Apache Web Server

The majority of the world’s websites’ has been hosted on Apache web server. Besides of NGINX and IIS, Apache has been the first priority for all system administrator. Thus, if you are a system administrator and want your Apache to perform at its best, then just follow this article.

TIP #1: Keep your Apache version updated

Keeping your Apache server update means all the necessary bugs have been fixed and it has been updated keeping on mind the needs of the future technology.

To check your current Apache version type the following command

# httpd -v               [On RedHat/CentOS ] 
# apache2 –v [On Debian/Ubuntu ]

Tip #2: Enable Multi-Processing Module (MPM) as per your need

MPM basically extends the modular functionality of a network in order to use the child process for every single connection made, it basically binds the web server to network ports on the machine.

To enable this just follow:-

Open the following file location

# /etc/httpd/conf.modules.d/00-mpm.conf    [On RedHat/CentOS based]
# /etc/apache2/mods-available/<mpm>.load [On Debian/Ubuntu based]

And un-comment the following line:

LoadModule mpm_event_module modules/mod_mpm_event.so

To enable this you will have to install the following packages-

For CentOs/RedHat you will have to install this package named php-fpm

For Debian/Ubuntu you will have to install this package named
libapache2-mod-fastcgi

Search this package on internet and you will be able installed this packages

Lastly don’t forget to restart your web server

Tip #3: Update your Kernel if you are using older kernel like 2.4

To check your current kernel version run the following command

# uname -r

Although updating the kernel is not a beginning task and itself it is an interesting task to learn.

Vedant Singh

Linux System Administrator | Entrepreneur | Founder Techmion. I have started my career as a Linux system Administrator after that quit my job to start something new that excites me and started a Tech Company in order to provide the best technology to my clients. My Company website link: Technology at its best For Bulk, SMS-Marketing follows the link : https://www.pingsms.in/

View all posts by Vedant Singh →

Leave a Reply

Your email address will not be published. Required fields are marked *