Jul
20
2013

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

<?php

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
or
#service apache2 restart


Leave a comment

You must be logged in to post a comment.




Member Area