Tips to Boost the Performance of Your Apache Web Server

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.

apache performance tuningapache performance tuning Linuxoptimize apache for high trafficspeeding up apache server
Comments (0)
Add Comment