How to Check Apache Module and Enable Apache Modules?

We can use apache2ctl -M to the module that has been enabled on apache.

Or if you have apache + PHP you can check it from phpinfo() function


echo phpinfo();



What if you want to enable the module you can use

a2enmod “The module name”


for example “enable mod_rewrite” ::

#a2enmod rewrite


Then restart the apache service

#/etc/init.d/apache2 restart
#service apache2 restart

Leave a comment

You must be logged in to post a comment.

Member Area