• Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / apache server tutorial (install,config, performance tuning, security, error handling) / apache modules list (explained, enable disable)

apache modules list (explained, enable disable)

Table of Contents

Toggle
  • What are modules in apache sever?
  • To view installed available modules
  • apache core modules
  • Most common used modules

What are modules in apache sever?

those are additional features to core webserver.
like apps in phone,
WordPress plugins,
Ex: status module, it collects& monitors the data to display end user.
if you don’t want use it disable otherwise it uses ram, low ram then slow server.

To view installed available modules

check installed modules apache
Enabled modules: ls /etc/apache2/mods-enabled/
Available modules: ls /etc/apache2/mods-available/
apache2ctl -M ubuntu / debian
To view enabled modules
apache2ctl -M
To install new module
to enable module
a2enmod modname
a2enmod rewrite
to disable module
a2dismod module name
A2dismod mod_deflate
to completely remove or uninstall module
apt-get remove php-mod
configuration of module
nano etc/apache2/mods-enabled/mid_rewite.conf
set memory limits etc.
Save.
Reload apache server.

apache core modules

Mpm_common
collection of directives for multi processing module mpm
core
Web server always available
event
threads only for active connection.
threads always runs by using memory. to handle connections quickly rather than spawning at the time of connection like mpm_event better to use php_fpm instead of php_mod
mpm_event
Mpm_worker: mult threaded process
Child process has multiple threads, each thread handle one connection
mpm_Prefork
non threaded preforking webserver. One connection one process, one process = dedicated memory allocation just like phomemory limit untill child process dies, better to use with mod_php
<IfModule mpm_event_module>    StartServers 3    MinSpareThreads          25    MaxSpareThreads          75    ThreadLimit                      64    ThreadsPerChild          25    MaxRequestWorkers    30    MaxConnectionsPerChild    1000</IfModule>
same like php-fpm pool manger in nginx.
run
apache2-v
To view apache version along with core module
/etc/apache2/mods-available/<mpm>.load
switch mpm_event,mpm_worker_mpm_prefork
 
to better understand apache architecture, read apache vs nginx architecture
nginx single threaded non blocking  (so les memory)
nginx workers=equals to cpu core.
1 worker can handle 1024 connections.
2=2048 concurrent connections per second that not always means
2048 live visitors(more than this or below based configuration )
apache max client reached
MaxClients directive replaced with
MaxRequestWorkers
make sure increase maxclinent 500 to 2000(based on traffic in apache.conf

Most common used modules

rewrite
Gzip
httpheaders
ssl
1) Mod_security (set of basic security rules)
2) Mod_rewrite (must otherwise you get 404 errors except homepage)
3) Mod_deflate or Mod_Brotil (compression algorithms)
4) Mod_cache
5) Mod_proxy
Optional for proxy, useful when you use nginx as reverse proxy for apache
6) Mod_ssl,
enable this if you want to use HTTPS or SSL.
Mod_cache
caches dynamic web pages & stores as static pages for some time ex: 1 hour just like fastcgi cache
More module & more features
Modules that need to use
Mod-evasis
avoids bootforce attack
apache server tutorial (install,config, performance tuning, security, error handling)
https://httpd.apache.org/docs/2.4/mod/

apache server tutorial (install,config, performance tuning, security, error handling)

  • what is If-Modified-Since HTTP header how to add to Wordpress website
  • htaccess tutorial tips for wordpress #redirect #leverage browser cache #Gzip #KeepAlive
  • apache modules list (explained, enable disable)
  • connect to server by SSH client Putty SFTP client winscp LAMP, LEMP nginx apache etc linux
  • Lamp stack install on Ubuntu 20.4 LTS apache, mysql, php 7.4(Debian 9 & Ubuntu 18.04 lts)
  • apache performance tuning mpm-worker vs prefork vs event modules
  • enable caching in apache server (mod cache disk cache) vs fastcgi cache
  • how to enable KeepAlive connections in apache nginx wordpress
  • Cache control Header & expires headers How to set Properly
  • apache2 conf sample explained apache configuration file modules etc
  • restart apache in ubuntu (start | stop | reload | config test) centos debian mac linux windows 10 xampp
  • uninstall apache2 ubuntu in 3 steps Debian

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy