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.

Sachin Friday 15 November 2013 - 10:40 pm | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.