• 1-888-289-2246
  • 24x7x365 Presence

Checking for the enabled modules of Apache in Linux


The quickest and easiest way to check for the enabled modules of Apache on Linux is via the command prompt with the following command:-

apachectl -t -D DUMP_MODULES

This command outputs the names of modules which are enabled in the Apache configuration and also lets us know the status of a module – whether it is a static or shared module of Apache. If on some Linux system we get the error “apachectl not found due to system specific configuration”, then we’ll have to first find out the exact path of apachectl. We can see this inside the bin folder in the Apache configuration.

In the H-Sphere server, we can find apachectl on the path below:-

/hsphere/shared/apache2/bin/apachectl -t -D DUMP_MODULES

On Ubuntu or Debian, we can get this detail using the command below:-

apache2ctl -M

That’s it.

]]>


Leave a Reply

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